def test_autospec_on_bound_builtin_function(self):
    meth = types.MethodType(time.ctime, time.time())
    self.assertIsInstance(meth(), str)
    mocked = create_autospec(meth)
    mocked()
    mocked.assert_called_once_with()
    mocked.reset_mock()
    mocked(4, 5, 6)
    mocked.assert_called_once_with(4, 5, 6)
def test_autospec_on_bound_builtin_function(self):
    meth = types.MethodType(time.ctime, time.time())
    self.assertIsInstance(meth(), str)
    mocked = create_autospec(meth)
    mocked()
    mocked.assert_called_once_with()
    mocked.reset_mock()
    mocked(4, 5, 6)
    mocked.assert_called_once_with(4, 5, 6)