Did I find the right examples for you? yes no

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

src/t/u/tuskar-HEAD/tuskar/tests/api/controllers/v1/test_racks.py   tuskar(Download)
            ]
        }
        response = self.post_json('/racks', params=json, status=201)
        self.assertEqual(response.content_type, "application/json")
 

src/t/u/tuskar-HEAD/tuskar/tests/api/controllers/v1/test_flavors.py   tuskar(Download)
                {'name': 'storage', 'value': '1024', 'unit': 'GB'},
            ]}
        response=self.post_json('/resource_classes/'+str(self.rc.id)+
                                  '/flavors', params=request_json, status=201)
        self.assertEqual(response.content_type, "application/json")
                {'name': 'storage', 'value': '1024', 'unit': 'GB'},
            ]}
        response=self.post_json('/resource_classes/'+str(self.rc.id)+
                                  '/flavors', params=request_json, status=201)
        self.assert_equality(request_json, response.json, ['name', 'max_vms'])
                {'name': 'storage', 'value': '1024', 'unit': 'GB'},
            ]}
        response=self.post_json('/resource_classes/'+str(self.rc.id)+
                                  '/flavors', params=request_json, status=201)
        self.assert_equality(request_json, response.json, ['name', 'max_vms'])