summaryrefslogtreecommitdiffstats
path: root/tests/units/test_0007_post_poweroff.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/units/test_0007_post_poweroff.py')
-rw-r--r--tests/units/test_0007_post_poweroff.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/units/test_0007_post_poweroff.py b/tests/units/test_0007_post_poweroff.py
index d2d5b15..bbf9bf9 100644
--- a/tests/units/test_0007_post_poweroff.py
+++ b/tests/units/test_0007_post_poweroff.py
@@ -12,6 +12,10 @@ class TestPostPoweroffMethods(unittest.TestCase):
returned = requests.post(self.url, headers=self.headers, json=self.json)
self.assertEqual(returned.status_code, 200)
+ def test_no_payload(self):
+ returned = requests.post(self.url, headers=self.headers, json=None)
+ self.assertEqual(returned.status_code, 400)
+
def test_get(self):
returned = requests.get(self.url, headers=self.headers)
self.assertEqual(returned.status_code, 405)