def test_delete(self): with requests_mock.mock() as mock: mock.delete( client.get_full_url("data/persons/person-1"), text='' ) self.assertEquals( client.delete("data/persons/person-1"), "" )
def test_delete(self): with requests_mock.mock() as mock: mock.delete(raw.get_full_url("data/persons/person-01"), text="") self.assertEqual(raw.delete("data/persons/person-01"), "")