def test_isabstract(self): from mediacore.plugin.abc import abstractmethod from mediacore.plugin.abc import isabstract @abstractmethod def dummyfunc(): pass self.assertEqual(isabstract(dummyfunc), True)
def test_isabstract(self): from mediacore.plugin.abc import isabstract c = self._makeOne() self.assertEqual(isabstract(c), True)
def test_imp_isabstract(self): from mediacore.plugin.abc import isabstract c = self._makeOne() imp = self._makeImplementation(c) self.assertEqual(isabstract(imp), False)
def _callFUT(self, x): from mediacore.plugin.abc import isabstract return isabstract(x)