Revision 57c57b88 snf-cyclades-app/synnefo/api/tests/subnets.py

b/snf-cyclades-app/synnefo/api/tests/subnets.py
154 154
        }
155 155
        response = self.post(SUBNETS_URL, test_net.userid,
156 156
                             json.dumps(request), "json")
157
        self.assertSuccess(response)
157
        self.assertSuccess201(response)
158 158

  
159 159
    def test_create_subnet_with_ip_pool_allocation(self):
160 160
        """Test create a subnet with an IP pool"""
......
258 258
                'network_id': test_net.id,
259 259
                'cidr': '10.0.3.0/24',
260 260
                'ip_version': 4,
261
                'gateway_ip': 10.0.3.254}
261
                'gateway_ip': '10.0.3.254'}
262 262
        }
263 263
        response = self.post(SUBNETS_URL, test_net.userid,
264 264
                             json.dumps(request), "json")
265
        self.assertSuccess(response)
265
        self.assertSuccess201(response)
266 266
        resp = json.loads(response.content)['subnet']
267 267
        self.assertEqual("10.0.3.254", resp['gateway_ip'])
268 268
        self.assertEqual([{"start": "10.0.3.1", "end": "10.0.3.253"}],

Also available in: Unified diff