Update test_views.py

This commit is contained in:
Tomasz F 2021-04-14 21:14:30 +02:00 committed by GitHub
parent 25867d35e6
commit 929f6fb384
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -17,7 +17,7 @@ class TestViews(TestCase):
self.assertEquals(response.status_code, 200)
self.assertTemplateUsed(response, 'frontend/index.html')
if response.status_code == 200:
print("\033[92mPassed!"")
print("\033[92mPassed!")
else:
print("\033[91mFailed!")
@ -27,7 +27,7 @@ class TestViews(TestCase):
self.assertEquals(response.status_code, 302)
if response.status_code == 302:
print("\033[92mPassed!"")
print("\033[92mPassed!")
else:
print("\033[91mFailed!")
@ -37,7 +37,7 @@ class TestViews(TestCase):
self.assertEquals(response.status_code, 302)
if response.status_code == 302:
print("\033[92mPassed!"")
print("\033[92mPassed!")
else:
print("\033[91mFailed!")