Revision a3accf03 snf-cyclades-app/synnefo/api/test/networks.py
b/snf-cyclades-app/synnefo/api/test/networks.py | ||
---|---|---|
433 | 433 |
response = self.mypost('networks/%d/action' % net.id, |
434 | 434 |
net.userid, json.dumps(request), 'json') |
435 | 435 |
self.assertBadRequest(response) |
436 |
|
|
437 |
def test_catch_wrong_api_paths(self, *args): |
|
438 |
response = self.myget('nonexistent') |
|
439 |
self.assertEqual(response.status_code, 400) |
|
440 |
try: |
|
441 |
error = json.loads(response.content) |
|
442 |
except ValueError: |
|
443 |
self.assertTrue(False) |
Also available in: Unified diff