diff options
Diffstat (limited to 'admin/Sources/Services/ogAdmServer/tests/units/test_0012_post_software.py')
-rw-r--r-- | admin/Sources/Services/ogAdmServer/tests/units/test_0012_post_software.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/admin/Sources/Services/ogAdmServer/tests/units/test_0012_post_software.py b/admin/Sources/Services/ogAdmServer/tests/units/test_0012_post_software.py index 1b41a868..15746836 100644 --- a/admin/Sources/Services/ogAdmServer/tests/units/test_0012_post_software.py +++ b/admin/Sources/Services/ogAdmServer/tests/units/test_0012_post_software.py @@ -14,6 +14,10 @@ class TestPostSoftwareMethods(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) |