Beispiel #1
0
    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)
Beispiel #2
0
 def test_isabstract(self):
     from mediacore.plugin.abc import isabstract
     c = self._makeOne()
     self.assertEqual(isabstract(c), True)
Beispiel #3
0
 def test_imp_isabstract(self):
     from mediacore.plugin.abc import isabstract
     c = self._makeOne()
     imp = self._makeImplementation(c)
     self.assertEqual(isabstract(imp), False)
Beispiel #4
0
 def _callFUT(self, x):
     from mediacore.plugin.abc import isabstract
     return isabstract(x)