def setUp(self): super(NotificationSourceTest, self).setUp() self.useFixture(CaptureTwistedLogs()) self.logger = Logger() self.clock = Clock() self.factory = AMQFactory(clock=self.clock, spec=AMQP0_8_SPEC_PATH) self.connector = FakeConnector(self.factory, logger=self.logger) self.source = NotificationSource(self.connector, clock=self.clock)
def _setUp(self): twisted_logs = self.useFixture(CaptureTwistedLogs()) self._fix_twisted_logs(twisted_logs, twisted_logs.LOG_DETAIL_NAME)
def test_something(self): self.useFixture(CaptureTwistedLogs()) log.msg('foo')
def setUp(self): super(VoucherTests, self).setUp() self.useFixture(CaptureTwistedLogs())
def setUp(self): super(UnblindedTokenTests, self).setUp() self.useFixture(CaptureTwistedLogs())