@patch('koi.auth.logging')
    def test_get_decorated_method_with_invalid_token(self, logging):
        test_token = 'token'
        self.is_valid = False

        response = self.fetch('/', headers={'Authorization': test_token})

        self.assert_status_code(401, response)
        self.assert_json_error(response)
        assert logging.warning.call_count == 1
        assert not self.get_method.called
Cannot transition to an unknown state.
dataset/ETHPy150Open openpermissions/koi/tests/unit/auth/test_auth_decorator.py/_AuthenticateBase.test_get_decorated_method_with_invalid_token--crossover with--dataset/ETHPy150Open dustin/twitty-twister/twittytwister/test/test_twitter.py/TwitterMonitorTest.test_unknownState