def METHOD_NAME(test=False):
    """Decorator that allows the execution of all methods in a test class only
    and only if Qiita is set up to work in a test environment.
    Parameters
    ----------
    test : bool, optional
        If True it will raise a RuntimeError error
    Raises
    ------
    RuntimeError
        If Qiita is set up to work in a production environment
    """
    def class_modifier(cls):
        if not is_test_environment() or test:
            raise RuntimeError("Working in a production environment. Not "
                               "executing the tests to keep the production "
                               "database safe.")
        # Now, we decorate the setup and teardown functions
        class DecoratedClass(cls):
            def setUp(self):
                super(DecoratedClass, self).setUp()
            @classmethod
            @reset_test_database
            def tearDownClass(cls):
                pass
        return DecoratedClass
    return class_modifier