diff options
Diffstat (limited to 'tests/units/test_0011_post_hardware.py')
-rw-r--r-- | tests/units/test_0011_post_hardware.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/units/test_0011_post_hardware.py b/tests/units/test_0011_post_hardware.py index 1a620d1..1f3e160 100644 --- a/tests/units/test_0011_post_hardware.py +++ b/tests/units/test_0011_post_hardware.py @@ -16,6 +16,10 @@ class TestPostHardwareMethods(unittest.TestCase): returned = requests.post(self.url, headers=self.headers, json=None) self.assertEqual(returned.status_code, 400) + def test_malformed_payload(self): + returned = requests.post(self.url, headers=self.headers, json={}) + self.assertEqual(returned.status_code, 400) + def test_get(self): returned = requests.get(self.url, headers=self.headers) self.assertEqual(returned.status_code, 405) |