Esempio n. 1
0
 def test_log_delete(self):
     client = rest_client()
     client.delete('/zipcode/14020260/')
     response = self.client.get('/log/14020260/')
     self.assertEqual(2, len(response.data))
Esempio n. 2
0
 def test_delete_zipcode(self):
     client = rest_client()
     response = client.delete('/zipcode/14020260/')
     self.assertEqual(204, response.status_code)