Пример #1
0
    def test_on_forward(self):
        def example(state):
            return state

        state = 'test'
        self.assertTrue(
            callbacks.on_forward(example).on_forward(state) == state)
Пример #2
0
 def test_on_forward(self):
     def example(state):
         return state
     state = 'test'
     self.assertTrue(callbacks.on_forward(example).on_forward(state) == state)