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