Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
django-rest-framework
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
django-rest-framework
Commits
9f984553
Commit
9f984553
authored
Feb 22, 2013
by
Tom Christie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Formatting
parent
26ba1110
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
rest_framework/tests/serializer.py
+5
-4
No files found.
rest_framework/tests/serializer.py
View file @
9f984553
...
@@ -954,11 +954,12 @@ class SerializerPickleTests(TestCase):
...
@@ -954,11 +954,12 @@ class SerializerPickleTests(TestCase):
pickle
.
dumps
(
InnerPersonSerializer
(
Person
(
name
=
"Noah"
,
age
=
950
))
.
data
)
pickle
.
dumps
(
InnerPersonSerializer
(
Person
(
name
=
"Noah"
,
age
=
950
))
.
data
)
def
test_getstate_method_should_not_return_none
(
self
):
def
test_getstate_method_should_not_return_none
(
self
):
'''Regression test for
"""
Regression test for
https://github.com/tomchristie/django-rest-framework/issues/645
https://github.com/tomchristie/django-rest-framework/issues/645
'''
"""
d
=
serializers
.
DictWithMetadata
({
1
:
1
})
d
=
serializers
.
DictWithMetadata
({
1
:
1
})
self
.
assertEqual
(
d
.
__getstate__
(),
serializers
.
SortedDict
({
1
:
1
}))
self
.
assertEqual
(
d
.
__getstate__
(),
serializers
.
SortedDict
({
1
:
1
}))
class
DepthTest
(
TestCase
):
class
DepthTest
(
TestCase
):
...
...
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