def test_patch_spec_instance(self):
        patcher = patch(__name__ % '%s.X', spec=X())
        mock = patcher.start()
        self.addCleanup(patcher.stop)

        self.assertNotCallable(mock)
        self.assertRaises(TypeError, mock)
dataset/ETHPy150Open amrdraz/kodr/app/brython/www/src/Lib/unittest/test/testmock/testcallable.py/TestCallable.test_patch_spec_instance/swapped operands of `%`