def test_create_autospec_unbound_methods(self):
    return

    class Foo(object):

        def foo(self):
            pass
    klass = create_autospec(Foo)
    instance = klass()
    self.assertRaises(TypeError, instance.foo, 1)
    klass.foo(1)
    klass.foo.assert_called_with(1)
    self.assertRaises(TypeError, klass.foo)
def test_create_autospec_unbound_methods(self):
    return

    class Foo(object):

        def foo(self):
            pass
    klass = create_autospec(Foo)
    instance = klass()
    self.assertRaises(TypeError, instance.foo, 1)
    klass.foo(1)
    klass.foo.assert_called_with(1)
    self.assertRaises(TypeError, klass.foo)