Replaced deprecated TestCase methods. Refs #17049.

This commit is contained in:
Claude Paroz
2012-05-03 16:39:16 +02:00
parent 5a5724d80b
commit 8fb9b1804b

View File

@@ -303,7 +303,7 @@ class WizardTestGenericViewInterface(TestCase):
view = TestWizard.as_view([forms.Form])
response = view(factory.get('/'))
self.assertEquals(response.context_data['test_key'], 'test_value')
self.assertEqual(response.context_data['test_key'], 'test_value')
def test_get_context_data_with_mixin(self):
class AnotherMixin(object):
@@ -329,8 +329,8 @@ class WizardTestGenericViewInterface(TestCase):
view = TestWizard.as_view([forms.Form])
response = view(factory.get('/'))
self.assertEquals(response.context_data['test_key'], 'test_value')
self.assertEquals(response.context_data['another_key'], 'another_value')
self.assertEqual(response.context_data['test_key'], 'test_value')
self.assertEqual(response.context_data['another_key'], 'another_value')
class WizardFormKwargsOverrideTests(TestCase):