Revision 5db2001a snf-cyclades-app/synnefo/api/tests/networks.py
b/snf-cyclades-app/synnefo/api/tests/networks.py | ||
---|---|---|
167 | 167 |
response = self.delete(url) |
168 | 168 |
self.assertItemNotFound(response) |
169 | 169 |
|
170 |
def test_put_network(self): |
|
171 |
test_net = dbmf.NetworkFactory() |
|
172 |
url = join_urls(NETWORKS_URL, str(test_net.id)) |
|
173 |
request = { |
|
174 |
"network": { |
|
175 |
"name": "new_name"} |
|
176 |
} |
|
177 |
response = self.put(url, params=json.dumps(request), |
|
178 |
user=test_net.userid) |
|
179 |
self.assertEqual(response.status_code, 200) |
|
180 |
|
|
181 | 170 |
def test_put_network_wrong_data(self): |
182 | 171 |
test_net = dbmf.NetworkFactory() |
183 | 172 |
url = join_urls(NETWORKS_URL, str(test_net.id)) |
Also available in: Unified diff