return r.json['subnets']
def get_subnet_details(self, subnet_id):
- r = self.subnets_get(subnet_id, success=201)
+ r = self.subnets_get(subnet_id, success=200)
return r.json
def update_subnet(
def test_get_subnet_details(self, subnets_get):
subid, FakeObject.json = 'subid', 'ret val'
self.assertEqual(self.client.get_subnet_details(subid), 'ret val')
- subnets_get.assert_called_once_with(subid, success=201)
+ subnets_get.assert_called_once_with(subid, success=200)
@patch(
'kamaki.clients.network.NetworkClient.subnets_put',