fixed test because of layout change
This commit is contained in:
@@ -102,12 +102,12 @@ class TestWeb(LiveTest):
|
|||||||
password='test',
|
password='test',
|
||||||
_formname='login')
|
_formname='login')
|
||||||
client.post('user/login', data=data)
|
client.post('user/login', data=data)
|
||||||
self.assertTrue('Welcome Homer' in client.text)
|
self.assertTrue('Homer' in client.text)
|
||||||
|
|
||||||
# check registration and login were successful
|
# check registration and login were successful
|
||||||
client.get('index')
|
client.get('index')
|
||||||
|
|
||||||
self.assertTrue('Welcome Homer' in client.text)
|
self.assertTrue('Homer' in client.text)
|
||||||
|
|
||||||
client = WebClient('http://127.0.0.1:8000/admin/default/')
|
client = WebClient('http://127.0.0.1:8000/admin/default/')
|
||||||
client.post('index', data=dict(password='testpass'))
|
client.post('index', data=dict(password='testpass'))
|
||||||
|
|||||||
Reference in New Issue
Block a user