@@ -60,7 +60,7 @@ def test_view_name_uses_class_name(self):
60
60
"""
61
61
class MockView (APIView ):
62
62
pass
63
- self . assertEqual ( MockView ().get_view_name (), 'Mock' )
63
+ assert MockView ().get_view_name () == 'Mock'
64
64
65
65
def test_view_description_uses_docstring (self ):
66
66
"""Ensure view descriptions are based on the docstring."""
@@ -80,7 +80,7 @@ class MockView(APIView):
80
80
81
81
# hash style header #"""
82
82
83
- self . assertEqual ( MockView ().get_view_description (), DESCRIPTION )
83
+ assert MockView ().get_view_description () == DESCRIPTION
84
84
85
85
def test_view_description_can_be_empty (self ):
86
86
"""
@@ -89,7 +89,7 @@ def test_view_description_can_be_empty(self):
89
89
"""
90
90
class MockView (APIView ):
91
91
pass
92
- self . assertEqual ( MockView ().get_view_description (), '' )
92
+ assert MockView ().get_view_description () == ''
93
93
94
94
def test_view_description_can_be_promise (self ):
95
95
"""
@@ -111,7 +111,7 @@ def __str__(self):
111
111
class MockView (APIView ):
112
112
__doc__ = MockLazyStr ("a gettext string" )
113
113
114
- self . assertEqual ( MockView ().get_view_description (), 'a gettext string' )
114
+ assert MockView ().get_view_description () == 'a gettext string'
115
115
116
116
def test_markdown (self ):
117
117
"""
@@ -120,7 +120,7 @@ def test_markdown(self):
120
120
if apply_markdown :
121
121
gte_21_match = apply_markdown (DESCRIPTION ) == MARKED_DOWN_gte_21
122
122
lt_21_match = apply_markdown (DESCRIPTION ) == MARKED_DOWN_lt_21
123
- self . assertTrue ( gte_21_match or lt_21_match )
123
+ assert gte_21_match or lt_21_match
124
124
125
125
126
126
def test_dedent_tabs ():
0 commit comments