@@ -67,7 +67,7 @@ class AttributesFieldsTestCase(TestCase):
67
67
def test_attributes_form_field (self ):
68
68
field = AttributesFormField ()
69
69
# to_python method
70
- self .assertEquals (field .to_python ({"test" : True }), {"test" : True })
70
+ self .assertEqual (field .to_python ({"test" : True }), {"test" : True })
71
71
with self .assertRaises (ValidationError ):
72
72
field .to_python ("no json" )
73
73
# validate method
@@ -79,28 +79,28 @@ def test_attributes_form_field(self):
79
79
def test_attributes_field (self ):
80
80
field = AttributesField (null = True , default = {"my" : "default" })
81
81
# formfield method
82
- self .assertEquals (field .formfield ().initial , {"my" : "default" })
82
+ self .assertEqual (field .formfield ().initial , {"my" : "default" })
83
83
# from_db_value method
84
84
self .assertIsNone (field .from_db_value (None ))
85
- self .assertEquals (
85
+ self .assertEqual (
86
86
field .from_db_value ('{"test": "test"}' ),
87
87
{"test" : "test" },
88
88
)
89
- self .assertEquals (
89
+ self .assertEqual (
90
90
field .from_db_value ({"test" : "test" }),
91
91
{"test" : "test" },
92
92
)
93
93
# get_db_prep_value method
94
94
self .assertIsNone (field .get_db_prep_value (None ))
95
95
field .null = False
96
96
field .blank = True
97
- self .assertEquals (field .get_db_prep_value (None ), "" )
97
+ self .assertEqual (field .get_db_prep_value (None ), "" )
98
98
# get_default method
99
99
field = AttributesField (default = '{"my": "default"}' )
100
100
field .default = NOT_PROVIDED
101
101
field .get_default ()
102
102
# get_internal_type method
103
- self .assertEquals (field .get_internal_type (), "TextField" )
103
+ self .assertEqual (field .get_internal_type (), "TextField" )
104
104
# validate method
105
105
with self .assertRaises (ValidationError ):
106
106
field .validate (None , Noop )
0 commit comments