def test_repr(self): obj = Mock(name='cb') self.assertIn( 'promise', repr(utils.ChannelPromise(obj)), ) self.assertFalse(obj.called)
def test_repr(self): self.assertIn( 'foo', repr(utils.ChannelPromise(lambda: 'foo')), )
def test_repr(self): self.assertEqual( repr(utils.ChannelPromise(lambda: 'foo')), "<promise: 'foo'>", )