Revision 6a0e1a00 api/tests.py
b/api/tests.py | ||
---|---|---|
857 | 857 |
def test_unauthorized_call(self): |
858 | 858 |
request = {'reboot': {'type': 'HARD'}} |
859 | 859 |
path = '/api/v1.1/servers/%d/action' % 1 |
860 |
response = self.client.post(path, json.dumps(request), content_type='application/json') |
|
860 |
response = self.client.post(path, json.dumps(request), |
|
861 |
content_type='application/json') |
|
861 | 862 |
self.assertEquals(response.status_code, 401) |
862 | 863 |
|
863 | 864 |
|
Also available in: Unified diff