Update the test for page modeladmin

pull/2127/merge
Mikalai Radchuk 2017-01-22 11:34:39 +03:00 zatwierdzone przez Karl Hobley
rodzic 644714ef57
commit 10e237f313
1 zmienionych plików z 3 dodań i 3 usunięć

Wyświetl plik

@ -119,11 +119,11 @@ class TestInspectView(TestCase, WagtailTestUtils):
def test_title_present(self):
"""
The page title should appear twice. Once in the header, and once
more in the field listing
The page title should appear three times. Once in the header, and two times
in the field listing (as the actual title and as the draft title)
"""
response = self.get(4)
self.assertContains(response, 'Christmas', 2)
self.assertContains(response, 'Christmas', 3)
def test_manytomany_output(self):
"""