Update tests to match generic CBV success message.

This commit is contained in:
Roberto Rosario
2016-03-08 02:37:22 -04:00
parent ad328b2c3b
commit d05345ed3c
2 changed files with 2 additions and 2 deletions

View File

@@ -66,7 +66,7 @@ class PermissionsViewsTestCase(TestCase):
}, follow=True
)
self.assertContains(response, 'saved', status_code=200)
self.assertContains(response, 'update', status_code=200)
self.assertEqual(Role.objects.count(), 1)
self.assertEqual(Role.objects.first().label, TEST_ROLE_LABEL_EDITED)

View File

@@ -147,7 +147,7 @@ class TagViewTestCase(GenericDocumentViewTestCase):
}, follow=True
)
self.assertContains(response, text='saved', status_code=200)
self.assertContains(response, text='update', status_code=200)
tag = Tag.objects.get(pk=self.tag.pk)
self.assertEqual(tag.label, TEST_TAG_LABEL_EDITED)
self.assertEqual(tag.color, TEST_TAG_COLOR_EDITED)