Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-user-state-client
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-user-state-client
Commits
ed151d4f
Commit
ed151d4f
authored
Jul 22, 2015
by
Calen Pennington
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add a test of history after a delete
parent
2e2fe266
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
0 deletions
+14
-0
edx_user_state_client/tests.py
+14
-0
No files found.
edx_user_state_client/tests.py
View file @
ed151d4f
...
...
@@ -345,6 +345,20 @@ class _UserStateClientTestHistory(_UserStateClientTestUtils):
[{
'a'
:
1
}]
)
def
test_history_after_delete
(
self
):
self
.
set
(
0
,
0
,
{
str
(
val
):
val
for
val
in
xrange
(
3
)})
for
val
in
xrange
(
3
):
self
.
delete
(
0
,
0
,
[
str
(
val
)])
self
.
assertEquals
(
[
history
.
state
for
history
in
self
.
get_history
(
0
,
0
)],
[
None
,
{
'2'
:
2
},
{
'2'
:
2
,
'1'
:
1
},
{
'2'
:
2
,
'1'
:
1
,
'0'
:
0
}
]
)
def
test_set_many_with_history
(
self
):
self
.
set_many
(
0
,
{
0
:
{
'a'
:
0
},
1
:
{
'a'
:
1
}})
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment