Skip to content

Instantly share code, notes, and snippets.

@andymckay
Created December 20, 2011 15:10
Show Gist options
  • Save andymckay/1501886 to your computer and use it in GitHub Desktop.
Save andymckay/1501886 to your computer and use it in GitHub Desktop.
def test_admin_flag(self):
self.addon.update(admin_review=True)
response = self.client.post(self.url, {'action': 'info',
'comments': 'hello sailor',
'adminflag': True})
eq_(response.status_code, 302)
eq_(Addon.objects.get(pk=self.addon.pk).admin_review, False)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment