summaryrefslogtreecommitdiffstats
path: root/tests/units/test_0002_post_clients.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/units/test_0002_post_clients.py')
-rw-r--r--tests/units/test_0002_post_clients.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/units/test_0002_post_clients.py b/tests/units/test_0002_post_clients.py
index 1aae349..590d6ba 100644
--- a/tests/units/test_0002_post_clients.py
+++ b/tests/units/test_0002_post_clients.py
@@ -12,5 +12,9 @@ class TestPostClientsMethods(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)
+
if __name__ == '__main__':
unittest.main()