Are Mixin classes AbstractBaseClasses? The most accurate answer for your case is no, but it probably should be.
Your class as an independent person cannot survive for your reasons, which you indicated. By doing this ABC , you will directly tell anyone who is looking at your class (e.g. pycharm) that
from abc import ABCMeta, abstractmethod class TestConverterMixin(object): __metaclass__ = ABCMeta @abstractmethod def assertEqual(self, other): "Need concrete implementation somewhere" .... the rest of your code
The problem is that you will need this for all other methods (self.AssertTrue, self.converter, etc.). You may have something else, but it seriously looks like a subclass of unittest.TestCase for me.
Oh, and that was wrong. No, they understood everything. If you did this with ABC or a subclass of TestCase, they would not complain. If you used interfaces like zope.Interface, pycharm etc. They are usually mistaken because they do not understand the registration and search process (it is outside the python core)
source share