diff options
Diffstat (limited to 'tests/test_market.py')
-rw-r--r-- | tests/test_market.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/test_market.py b/tests/test_market.py index c029686..aeb9f8e 100644 --- a/tests/test_market.py +++ b/tests/test_market.py | |||
@@ -1126,12 +1126,13 @@ class ProcessorTest(WebMockTestCase): | |||
1126 | method_mock = mock.Mock() | 1126 | method_mock = mock.Mock() |
1127 | method_arguments.return_value = [ | 1127 | method_arguments.return_value = [ |
1128 | method_mock, | 1128 | method_mock, |
1129 | ["foo2", "foo"] | 1129 | ["foo2", "foo", "foo3"] |
1130 | ] | 1130 | ] |
1131 | self.m.options = { "foo3": "coucou"} | ||
1131 | method, args = processor.parse_args("action", {"foo": "bar", "foo2": "bar"}, {"foo": "bar2", "bla": "bla"}) | 1132 | method, args = processor.parse_args("action", {"foo": "bar", "foo2": "bar"}, {"foo": "bar2", "bla": "bla"}) |
1132 | 1133 | ||
1133 | self.assertEqual(method_mock, method) | 1134 | self.assertEqual(method_mock, method) |
1134 | self.assertEqual({"foo": "bar2", "foo2": "bar"}, args) | 1135 | self.assertEqual({"foo": "bar2", "foo2": "bar", "foo3": "coucou"}, args) |
1135 | 1136 | ||
1136 | with mock.patch.object(processor, "method_arguments") as method_arguments: | 1137 | with mock.patch.object(processor, "method_arguments") as method_arguments: |
1137 | method_mock = mock.Mock() | 1138 | method_mock = mock.Mock() |