def _delete(uuid): delete_host(uuid) return make_response("", 204, [])
def test_delete_host(self): with self.app.test_request_context('/'): result = hosts.delete_host(self.host_id) self.assertEqual(result, None) self.assertRaises(exc.NotFound, hosts.get_host, self.host_id)