Permalink
Browse files

fix tests to reflect new smartmin url reversing

  • Loading branch information...
nicpottier committed Mar 31, 2012
1 parent e9d18af commit 190b60cf0a9d216de01663c429c01a79ff6ebc08
Showing with 3 additions and 3 deletions.
  1. +3 −3 test-runner/blog/tests.py
@@ -306,7 +306,7 @@ def test_crudl(self):
groups=Group.objects.get(name='Administrator').id,
email='steve@apple.com')
- response = self.client.post(reverse('smartmin.user_create'), post_data, follow=True)
+ response = self.client.post(reverse('users.user_create'), post_data, follow=True)
self.assertEquals(200, response.status_code)
self.assertTrue('form' not in response.context)
@@ -319,7 +319,7 @@ def test_crudl(self):
woz.save()
# list our users
- response = self.client.get(reverse('smartmin.user_list'))
+ response = self.client.get(reverse('users.user_list'))
users = response.context['user_list']
# results should be sorted by username
@@ -338,7 +338,7 @@ def test_crudl(self):
# need is active here or steve will be marked inactive
post_data['is_active'] = '1'
- response = self.client.post(reverse('smartmin.user_update', args=[steve.id]), post_data, follow=True)
+ response = self.client.post(reverse('users.user_update', args=[steve.id]), post_data, follow=True)
self.assertEquals(200, response.status_code)
self.assertTrue('form' not in response.context)

0 comments on commit 190b60c

Please sign in to comment.