def test_paranoid_pin(self): mthd = mock.Mock() mthd.__name__ = 'mock_signal' warning.connect(mthd, weak=False) self.client.post(self.list_url, data={'uuid': self.uuid, 'pin': self.pin, 'foo': 'something naughty'}) assert mthd.called
def test_paranoid_pin(self): mthd = mock.Mock() mthd.__name__ = 'mock_signal' warning.connect(mthd, weak=False) self.client.post(self.list_url, data={ 'uuid': self.uuid, 'pin': self.pin, 'foo': 'something naughty' }) assert mthd.called
def setUp(self): self.called = [] self.warning = warning.connect(self.result) self.finished = finished.connect(self.result)
def test_paranoid_pin(self): mthd = mock.Mock() mthd.__name__ = "mock_signal" warning.connect(mthd, weak=False) self.client.post(self.list_url, data={"uuid": self.uuid, "pin": self.pin, "foo": "something naughty"}) assert mthd.called