class TestPerson:

    def test_can_do_it(self):
        with patch.object(p.Person, '__init__', lambda self: None):
            person = p.Person()
Mock a class in Python in order to call one of its methods