Revision a01eb018 snf-astakos-app/astakos/im/tests/api.py
b/snf-astakos-app/astakos/im/tests/api.py | ||
---|---|---|
542 | 542 |
self.assertEqual(body['badRequest']['message'], |
543 | 543 |
'Not conforming tenantName') |
544 | 544 |
|
545 |
# Check bad request: inconsistent tenant |
|
546 |
url = reverse('astakos.api.tokens.authenticate') |
|
547 |
post_data = """{"auth":{"token":{"id":"%s"}, |
|
548 |
"tenantName":""}}""" % ( |
|
549 |
self.user1.auth_token) |
|
550 |
r = client.post(url, post_data, content_type='application/json') |
|
551 |
self.assertEqual(r.status_code, 200) |
|
552 |
|
|
545 | 553 |
# Check successful json response |
546 | 554 |
url = reverse('astakos.api.tokens.authenticate') |
547 | 555 |
post_data = """{"auth":{"passwordCredentials":{"username":"%s", |
Also available in: Unified diff