aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMilo Casagrande <milo.casagrande@linaro.org>2014-12-05 16:57:23 +0100
committerMilo Casagrande <milo.casagrande@linaro.org>2014-12-05 16:57:23 +0100
commitbfd8ad9a0cfb4e5a3c26016c05d8990cc0bbffc2 (patch)
tree35308ed5d1fa53b336db6fe30cb16cfa42bfec18
parent379d81790e3c196697db6d46796b1504585667fc (diff)
downloadkernel-ci-backend-boot-labs.tar.gz
Add more boot handler test.boot-labs
Change-Id: Ibe3b57216c84a867708cb294e968b1564cd22161
-rw-r--r--app/handlers/tests/test_boot_handler.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/app/handlers/tests/test_boot_handler.py b/app/handlers/tests/test_boot_handler.py
index 61388e6..940bb8a 100644
--- a/app/handlers/tests/test_boot_handler.py
+++ b/app/handlers/tests/test_boot_handler.py
@@ -135,6 +135,17 @@ class TestBootHandler(
self.assertEqual(
response.headers['Content-Type'], DEFAULT_CONTENT_TYPE)
+ def test_delete_with_bogus_objectid(self):
+ headers = {'Authorization': 'foo'}
+
+ response = self.fetch(
+ '/boot/!@#$!#$foo', method='DELETE', headers=headers,
+ )
+
+ self.assertEqual(response.code, 400)
+ self.assertEqual(
+ response.headers['Content-Type'], DEFAULT_CONTENT_TYPE)
+
def test_delete_wrong_spec(self):
headers = {'Authorization': 'foo'}