summaryrefslogtreecommitdiff
path: root/tests/rest/test_args.py
diff options
context:
space:
mode:
authorJim Rollenhagen <jim@jimrollenhagen.com>2019-09-26 09:43:27 -0400
committerJim Rollenhagen <jim@jimrollenhagen.com>2019-09-26 09:43:27 -0400
commite9c6edfe510f4ed407f8d2d84b4b931a382b48b3 (patch)
tree94bbd6a34bcf09e99f7ae1be88b19960192d6adb /tests/rest/test_args.py
parent1d73d6e50411ebc45fb96a6ed3c63ca91a500323 (diff)
downloadwsme-master.tar.gz
Retire github mirror, repo moved to opendevHEADmaster
Diffstat (limited to 'tests/rest/test_args.py')
-rw-r--r--tests/rest/test_args.py20
1 files changed, 0 insertions, 20 deletions
diff --git a/tests/rest/test_args.py b/tests/rest/test_args.py
deleted file mode 100644
index 4ae3246..0000000
--- a/tests/rest/test_args.py
+++ /dev/null
@@ -1,20 +0,0 @@
-import mock
-import unittest
-
-from wsme import exc
-from wsme.rest import args
-from wsme.rest import json
-
-
-class TestArgs(unittest.TestCase):
-
- def test_args_from_body(self):
-
- funcdef = mock.MagicMock()
- body = mock.MagicMock()
- mimetype = "application/json"
- funcdef.ignore_extra_args = True
- json.parse = mock.MagicMock()
- json.parse.side_effect = (exc.UnknownArgument(""))
- resp = args.args_from_body(funcdef, body, mimetype)
- self.assertEqual(resp, ((), {}))