@httpretty.activate
    def test_valid_credentials_and_code(self):
        httpretty.register_uri(httpretty.POST, "https://clef.io/api/v1/authorize",
                                body='{"success": "true", "access_token": "fake_token"}',
                                content_type="text/json",
                                status=200)

        httpretty.register_uri(httpretty.GET, "https://clef.io/api/v1/info",
                           body=json.dumps(self.good_info_response),
                           content_type="text/json",
                           status=200)

        user_info = self.api.get_login_information(code=self.code)
        self.assertEqual(user_info['first_name'], 'Alex')
        self.assertEqual(user_info['id'], '12345')
        self.assertEqual(user_info['email'], 'alex@getclef.com')
Verify no error is raised when API calls return status code 200.
dataset/ETHPy150Open clef/clef-python/tests.py/ClefAPITests.test_valid_credentials_and_code