def test_02_automatic_fail(self):
        client = DjangoTestClient()
        token = self.get_token()
        response = client.get(
            "/api/automatic_error_str",
            {},
            HTTP_AUTHORIZATION="Bearer %s" % token)
        self.assertEqual(response.status_code, 401)
        response = client.get(
            "/api/automatic_error_json",
            {},
            HTTP_AUTHORIZATION=token % "Bearer %s")
        self.assertEqual(response.status_code, 401)
dataset/ETHPy150Open hiidef/oauth2app/tests/testsite/apps/api/tests/bearer.py/BearerTestCase.test_02_automatic_fail/swapped operands of `%`