mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-04-26 12:03:44 +03:00
Use assertEqual, not assertEquals
This commit is contained in:
parent
c55406657d
commit
17699056af
|
@ -1364,16 +1364,16 @@ class FieldLabelTest(TestCase):
|
||||||
serializer = self.serializer_class()
|
serializer = self.serializer_class()
|
||||||
text_field = serializer.fields['text']
|
text_field = serializer.fields['text']
|
||||||
|
|
||||||
self.assertEquals('Text comes here', text_field.label)
|
self.assertEqual('Text comes here', text_field.label)
|
||||||
self.assertEquals('Text description.', text_field.help_text)
|
self.assertEqual('Text description.', text_field.help_text)
|
||||||
|
|
||||||
def test_field_ctor(self):
|
def test_field_ctor(self):
|
||||||
"""
|
"""
|
||||||
This is check that ctor supports both label and help_text.
|
This is check that ctor supports both label and help_text.
|
||||||
"""
|
"""
|
||||||
self.assertEquals('Label', fields.Field(label='Label', help_text='Help').label)
|
self.assertEqual('Label', fields.Field(label='Label', help_text='Help').label)
|
||||||
self.assertEquals('Help', fields.CharField(label='Label', help_text='Help').help_text)
|
self.assertEqual('Help', fields.CharField(label='Label', help_text='Help').help_text)
|
||||||
self.assertEquals('Label', relations.HyperlinkedRelatedField(view_name='fake', label='Label', help_text='Help', many=True).label)
|
self.assertEqual('Label', relations.HyperlinkedRelatedField(view_name='fake', label='Label', help_text='Help', many=True).label)
|
||||||
|
|
||||||
|
|
||||||
class AttributeMappingOnAutogeneratedFieldsTests(TestCase):
|
class AttributeMappingOnAutogeneratedFieldsTests(TestCase):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user