Last active
August 29, 2015 14:09
-
-
Save blturner/2c157875f10878e76859 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def test_delete_detail(self): | |
bar = Bar.objects.create(name='A bar to delete') | |
response = self.client.delete('/api/v1/bar/1/') | |
self.assertEqual(response.status_code, 204) | |
self.assertEqual(Bar.objects.count(), 0) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment