def test_01_json_bearer(self):
        client = DjangoTestClient()
        token = self.get_token()
        response = client.get(
            "/api/email_json",
            {},
            HTTP_AUTHORIZATION="Bearer %s" % token)
        self.assertEqual(response.status_code, 200)
        self.assertTrue("email" in json.loads(response.content))
        response = client.get(
            "/api/email_json",
            {},
            HTTP_AUTHORIZATION="Bearer2 %s" % token)
        self.assertEqual(response.status_code, 401)
        self.assertTrue(json.loads(response.content) in "error")
        response = client.get(
            "/api/email_json",
            {},
            HTTP_AUTHORIZATION="Bearer !!!%s" % token)
        self.assertEqual(response.status_code, 401)
        self.assertTrue("error" in json.loads(response.content))
dataset/ETHPy150Open hiidef/oauth2app/tests/testsite/apps/api/tests/bearer.py/BearerTestCase.test_01_json_bearer/swapped operands of `in`