diff options
| author | Renato Oliveira <renatooliveira.cin@gmail.com> | 2013-10-23 11:04:02 -0300 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2013-10-24 14:44:07 -0400 |
| commit | 43569647ab234cd1d2f4d41399b97b4b793d573a (patch) | |
| tree | 4795c3311f190332fa7dca9ec7240aafaeaf9621 /tests/admin_inlines | |
| parent | 9bf5610890530ce5db9af7ef89ae5b8612f46a94 (diff) | |
Fixed #21299 - Changed filters from title to capfirst on admin inline formsets.
Previously there was a mixture of the two which resulted in inconsistent
casing.
Diffstat (limited to 'tests/admin_inlines')
| -rw-r--r-- | tests/admin_inlines/tests.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/admin_inlines/tests.py b/tests/admin_inlines/tests.py index 8f0765d7a3..2d0a7edd10 100644 --- a/tests/admin_inlines/tests.py +++ b/tests/admin_inlines/tests.py @@ -57,7 +57,7 @@ class TestInline(TestCase): # The heading for the m2m inline block uses the right text self.assertContains(response, '<h2>Author-book relationships</h2>') # The "add another" label is correct - self.assertContains(response, 'Add another Author-Book Relationship') + self.assertContains(response, 'Add another Author-book relationship') # The '+' is dropped from the autogenerated form prefix (Author_books+) self.assertContains(response, 'id="id_Author_books-TOTAL_FORMS"') @@ -449,7 +449,7 @@ class TestInlinePermissions(TestCase): response = self.client.get(self.author_change_url) # We have change perm on books, so we can add/change/delete inlines self.assertContains(response, '<h2>Author-book relationships</h2>') - self.assertContains(response, 'Add another Author-Book Relationship') + self.assertContains(response, 'Add another Author-book relationship') self.assertContains(response, '<input type="hidden" id="id_Author_books-TOTAL_FORMS" ' 'value="4" name="Author_books-TOTAL_FORMS" />', html=True) self.assertContains(response, '<input type="hidden" id="id_Author_books-0-id" ' @@ -554,7 +554,7 @@ class SeleniumFirefoxTests(AdminSeleniumWebDriverTestCase): self.assertEqual(rows_length(), 3) add_button = self.selenium.find_element_by_link_text( - 'Add another Inner4 Stacked') + 'Add another Inner4 stacked') add_button.click() self.assertEqual(rows_length(), 4) @@ -570,7 +570,7 @@ class SeleniumFirefoxTests(AdminSeleniumWebDriverTestCase): self.assertEqual(rows_length(), 3) add_button = self.selenium.find_element_by_link_text( - 'Add another Inner4 Stacked') + 'Add another Inner4 stacked') add_button.click() add_button.click() |
