def test_002_filter_capability(self): gen = CapabilityHandler._filter_capability(self.test.List) self.assertIsInstance(gen, types.GeneratorType) for method, handler in gen: self.assertIsInstance(method, str) self.assertTrue(inspect.isfunction(handler))
def test_001_filter_resource(self): gen = CapabilityHandler._filter_resource(self.test) self.assertIsInstance(gen, types.GeneratorType) for name, cls in gen: self.assertIsInstance(name, str) self.assertTrue(inspect.isclass(cls))