def test_get_comment_information(self): client = BoxClient("my_token") response = {"type": "comment", "id": 123} ( flexmock(requests) .should_receive("request") .with_args( "get", "https://api.box.com/2.0/comments/123", params=None, data=None, headers=client.default_headers ) .and_return(mocked_response(response)) ) comment = client.get_comment_information(123) self.assertEquals(comment, response)
def test_get_comment_information(self): client = BoxClient("my_token") response = {"type": "comment", "id": 123 } (flexmock(requests) .should_receive('request') .with_args("get", "https://api.box.com/2.0/comments/123", params=None, data=None, headers=client.default_headers) .and_return(mocked_response(response))) comment = client.get_comment_information(123) self.assertEquals(comment, response)