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
31893cff
Commit
31893cff
authored
May 19, 2013
by
Nikolaus Schlemm
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* make test assertion more explicit
* cleanup
parent
88c94f37
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 additions
and
4 deletions
+1
-4
rest_framework/tests/fields.py
+1
-1
rest_framework/tests/views.py
+0
-3
No files found.
rest_framework/tests/fields.py
View file @
31893cff
...
@@ -846,7 +846,7 @@ class HumanizedFieldType(TestCase):
...
@@ -846,7 +846,7 @@ class HumanizedFieldType(TestCase):
"""
"""
self
.
assertIsInstance
(
humanized
,
unicode
)
self
.
assertIsInstance
(
humanized
,
unicode
)
self
.
assert
True
(
humanized
)
self
.
assert
NotEqual
(
humanized
,
''
)
class
HumanizedField
(
TestCase
):
class
HumanizedField
(
TestCase
):
...
...
rest_framework/tests/views.py
View file @
31893cff
...
@@ -6,8 +6,6 @@ from rest_framework.decorators import api_view
...
@@ -6,8 +6,6 @@ from rest_framework.decorators import api_view
from
rest_framework.response
import
Response
from
rest_framework.response
import
Response
from
rest_framework.settings
import
api_settings
from
rest_framework.settings
import
api_settings
from
rest_framework.views
import
APIView
from
rest_framework.views
import
APIView
from
rest_framework
import
exceptions
from
rest_framework
import
serializers
import
copy
import
copy
factory
=
RequestFactory
()
factory
=
RequestFactory
()
...
@@ -100,4 +98,3 @@ class FunctionBasedViewIntegrationTests(TestCase):
...
@@ -100,4 +98,3 @@ class FunctionBasedViewIntegrationTests(TestCase):
}
}
self
.
assertEqual
(
response
.
status_code
,
status
.
HTTP_400_BAD_REQUEST
)
self
.
assertEqual
(
response
.
status_code
,
status
.
HTTP_400_BAD_REQUEST
)
self
.
assertEqual
(
sanitise_json_error
(
response
.
data
),
expected
)
self
.
assertEqual
(
sanitise_json_error
(
response
.
data
),
expected
)
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