Did I find the right examples for you? yes no

All Samples(3)  |  Call(3)  |  Derive(0)  |  Import(0)

src/t/u/tuskar-HEAD/tuskar/tests/api/controllers/v1/test_racks.py   tuskar(Download)
    def test_it_returns_404_when_deleting_unknown_rack(self):
        response = self.delete_json('/racks/unknown',
                                    expect_errors=True,
                                    headers={"Accept": "application/json"}
                                    )

src/t/u/tuskar-HEAD/tuskar/tests/api/controllers/v1/test_flavors.py   tuskar(Download)
        flav_id=response.json['id']
        # delete the flavor
        response=self.delete_json('/resource_classes/'+str(self.rc.id)+
                                  '/flavors/'+str(flav_id), status=200)
 
            self.assertEqual(c['value'], '2222')
        # delete
        response=self.delete_json('/resource_classes/'+str(self.rc.id)+
                                  '/flavors/'+str(flav_id), status=200)