Skip to content

Commit

Permalink
add the widget check asserts
Browse files Browse the repository at this point in the history
  • Loading branch information
marazmiki committed Jan 20, 2015
1 parent d620fc3 commit b68d857
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions disguise/tests/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,12 +175,14 @@ def test_mask_myself(self):
self.assertEquals(200, resp.status_code)
self.assertEquals(self.user, resp.context['request'].user)
self.assertEquals(self.root, resp.context['request'].original_user)
self.assertContains(resp, '<form ')

# Disguise to superuser again
resp = self.mask_request(username='root', follow=True)
self.assertEquals(200, resp.status_code)
self.assertEquals(self.root, resp.context['request'].original_user)
self.assertEquals(self.root, resp.context['request'].user)
self.assertContains(resp, '<form ')

def test_unmask(self):
self.mask_request(username='user', follow=True)
Expand Down

0 comments on commit b68d857

Please sign in to comment.