forked from expo/troggle
renaming CSS files for clarity
This commit is contained in:
@@ -289,13 +289,13 @@ class PageTests(TestCase):
|
||||
|
||||
def test_page_site_media_css(self):
|
||||
# Flat file tests.
|
||||
response = self.client.get('/site_media/css/main3.css')
|
||||
response = self.client.get('/site_media/css/trog3.css')
|
||||
if response.status_code != 200:
|
||||
self.assertEqual(response.status_code, 302)
|
||||
if response.status_code != 302:
|
||||
self.assertEqual(response.status_code, 200)
|
||||
content = response.content.decode() # need to check it is not just an error page
|
||||
ph = r'This text is used by the test system to determine that main3.css loaded correctly'
|
||||
ph = r'This text is used by the test system to determine that trog3.css loaded correctly'
|
||||
phmatch = re.search(ph, content)
|
||||
self.assertIsNotNone(phmatch, "Failed to find expected text: '" + ph +"'")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user