def test_patch_mocksignature_callable(self):
        original_something = something
        something_name = '%s.something' % __name__
        @patch(something_name, mocksignature=True)
        def test(MockSomething):
            something(3, 4)
            MockSomething.assert_called_with(3, 4)

            something(6)
            MockSomething.assert_called_with(6, 5)

            self.assertRaises(TypeError, something)
        test()
        self.assertIs(something, original_something)
dataset/ETHPy150Open calvinchengx/python-mock/tests/testmocksignature.py/TestMockSignature.test_patch_mocksignature_callable/original