| Index: testing_support/tests/auto_stub_test.py
|
| diff --git a/testing_support/tests/auto_stub_test.py b/testing_support/tests/auto_stub_test.py
|
| index a3d6aef1992b4cef01ae07db6add3e908b8d066b..3322da9524bd4efa17da8008bfb80d265e1885df 100644
|
| --- a/testing_support/tests/auto_stub_test.py
|
| +++ b/testing_support/tests/auto_stub_test.py
|
| @@ -19,6 +19,17 @@ class TestSimpleMock(unittest.TestCase):
|
| obj.method1(1, param=2)
|
| obj.check_calls(['method1(1, param=2)'])
|
|
|
| + def test_auto_mock_sorted(self):
|
| + obj = MockedObject(self)
|
| + obj.method1(1, c=4, a=2, b=3)
|
| + # tandrii@ is very surprised this is actually deterministic.
|
| + obj.check_calls(['method1(1, a=2, c=4, b=3)'])
|
| + # The proper and sane way is to always sort them.
|
| + obj = MockedObject(self, sorted_kwargs=True)
|
| + obj.method1(1, c=4, a=2, b=3)
|
| + obj.check_calls(['method1(1, a=2, b=3, c=4)'])
|
| +
|
| +
|
| def return_one():
|
| return 1
|
|
|
|
|