def __new__(cls, name, bases, attrs):
        for attr_name, attr_value in attrs.items():
            # Add nose styled names of setup and teardown methods to cls attrs
            if attr_name == 'setup' and not attrs in 'setUp':
                attrs['setUp'] = attr_value

            if attr_name == 'teardown' and not 'tearDown' in attrs:
                attrs['tearDown'] = attr_value

        return super(TestCaseMetaclass, cls).__new__(cls, name, bases, attrs)
dataset/ETHPy150Open playpauseandstop/tddspry/tddspry/cases.py/TestCaseMetaclass.__new__/swapped operands of `in`