def check_auth(self, token, allowed_roles, resource, method):
        return token and self.redis.get(token)
Test the case an invalid command is given as class parameter explicitly.
dataset/ETHPy150Open nicolaiarocci/eve-oauth2/oauth2.py/BearerAuth.check_auth--crossover with--dataset/ETHPy150Open ganeti/ganeti/test/py/ganeti.hypervisor.hv_xen_unittest.py/TestGetCommand.testCommandInvalid