Ejemplo n.º 1
0
    def test_008_is_callable(self):
        func = lambda x: print(x)
        not_func = 'This is not callable as method'

        self.assertTrue(EventHandler.is_callable(func))
        self.assertFalse(EventHandler.is_callable(not_func))