Fix tests.
parent
77de795a9c
commit
632adce8ee
|
@ -17,8 +17,8 @@ class Testmaker(TestCase):
|
|||
self.assertEqual(r.status_code, 200)
|
||||
r = self.client.post('/dashboard/create/', {'django_packages_url': '', 'name': 'New Proj', 'copyright': 'Eric Holscher', 'tags': '', 'default_branch': '', 'project_url': 'http://example.com', 'theme': 'default', 'version': '1.0', 'description': 'Awesome New Project', })
|
||||
self.assertEqual(r.status_code, 302)
|
||||
self.assertEqual(r._headers['location'][1], 'http://testserver/dashboard/new-proj/')
|
||||
r = self.client.get('/dashboard/new-proj/', {})
|
||||
self.assertEqual(r._headers['location'][1], 'http://testserver/projects/new-proj/')
|
||||
r = self.client.get('/projects/new-proj/', {})
|
||||
self.assertEqual(r.status_code, 200)
|
||||
r = self.client.get('/projects/search/', {'q': 'new proj', })
|
||||
self.assertEqual(r.status_code, 302)
|
||||
|
|
Loading…
Reference in New Issue