summaryrefslogtreecommitdiffstats
path: root/tests/test_content_types.py
diff options
context:
space:
mode:
authorDolph Mathews <dolph.mathews@gmail.com>2012-12-13 10:01:21 -0600
committerDolph Mathews <dolph.mathews@gmail.com>2012-12-14 08:31:54 -0600
commitbe3dcf9873fb84bbb5c2cd3ed8f36444f353757e (patch)
treef0eb7d69481d9798e885a16ad3910e82cfde9dab /tests/test_content_types.py
parent4e2be8a8880f03b1c6d1dc663d7259dbb45ddf67 (diff)
downloadkeystone-be3dcf9873fb84bbb5c2cd3ed8f36444f353757e.tar.gz
keystone-be3dcf9873fb84bbb5c2cd3ed8f36444f353757e.tar.xz
keystone-be3dcf9873fb84bbb5c2cd3ed8f36444f353757e.zip
Test for content-type appropriate 404 (bug 1089987)
Change-Id: Idfba75f90e38de315ec50e660932beb8243f76f8
Diffstat (limited to 'tests/test_content_types.py')
-rw-r--r--tests/test_content_types.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/test_content_types.py b/tests/test_content_types.py
index ba0cdef9..6b0a03e0 100644
--- a/tests/test_content_types.py
+++ b/tests/test_content_types.py
@@ -308,6 +308,18 @@ class CoreApiTests(object):
self.assertIsNotNone(tenant.get('id'))
self.assertIsNotNone(tenant.get('name'))
+ def test_public_not_found(self):
+ r = self.public_request(
+ path='/%s' % uuid.uuid4().hex,
+ expected_status=404)
+ self.assertValidErrorResponse(r)
+
+ def test_admin_not_found(self):
+ r = self.admin_request(
+ path='/%s' % uuid.uuid4().hex,
+ expected_status=404)
+ self.assertValidErrorResponse(r)
+
def test_public_multiple_choice(self):
r = self.public_request(path='/', expected_status=300)
self.assertValidMultipleChoiceResponse(r)