Fix tests.

rtd2
Eric Holscher 2012-09-26 18:23:18 -07:00
parent 77de795a9c
commit 632adce8ee
1 changed files with 2 additions and 2 deletions

View File

@ -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)