@unittest.skipIf((2, 6) < sys.version_info,
                     "Class decorators now supported in earlier than Python 2.6")
    def test_decorator_register(self):
        """
        Test trying registering a class with a decorator.
        """

        from test_appregister.models import Question, registry

        @registry.register
        class MyQuestion(Question):
            pass

        self.assertIn(MyQuestion, registry.all())
dataset/ETHPy150Open d0ugal-archive/django-appregister/tests/test_appregister/tests.py/RegistryProcessTestCase.test_decorator_register/swapped operands of `<`