예제 #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)
예제 #2
0
 def test_isabstract(self):
     from mediacore.plugin.abc import isabstract
     c = self._makeOne()
     self.assertEqual(isabstract(c), True)
예제 #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)
예제 #4
0
 def _callFUT(self, x):
     from mediacore.plugin.abc import isabstract
     return isabstract(x)