def test_mocking_unbound_methods(self):

    class Foo(object):

        def foo(self, foo):
            pass
    p = patch.object(Foo, 'foo')
    mock_foo = p.start()
    Foo().foo(1)
    mock_foo.assert_called_with(1)
def test_mocking_unbound_methods(self):

    class Foo(object):

        def foo(self, foo):
            pass
    p = patch.object(Foo, 'foo')
    mock_foo = p.start()
    Foo().foo(1)
    mock_foo.assert_called_with(1)