Пример #1
0
    def test_repr_callback_rcb(self):

        def f():
            pass

        assert _rcb(f) == f.__name__
        assert _rcb('foo') == 'foo'
Пример #2
0
    def test_repr_callback_rcb(self):
        def f():
            pass

        self.assertEqual(_rcb(f), f.__name__)
        self.assertEqual(_rcb('foo'), 'foo')
Пример #3
0
    def test_repr_callback_rcb(self):
        def f():
            pass

        assert _rcb(f) == f.__name__
        assert _rcb('foo') == 'foo'