def test_create_review(): """verify that a review can be successfully created""" response = comment(FakeMedia(), 'This is a new comment', review=True) assert response.get('comment')
def test_forced_review(): """verify that a comment is forced as a review if it's length is > 200""" response = comment(FakeMedia(), '*' * 201, review=False) assert response.get('comment')
def comment(self, comment_body, spoiler=False, review=False): """Add a comment (shout or review) to this :class:`TVEpisode` on trakt. """ comment(self, comment_body, spoiler, review)
def test_create_comment(): """test comment creation""" response = comment(FakeMedia(), 'This is a new comment', spoiler=True) assert response.get('comment')
def test_forced_review(): """verify that a comment is forced as a review if it's length is > 200""" response = comment(FakeMedia(), '*' * 201, review=False) assert response is None
def test_create_review(): """verify that a review can be successfully created""" response = comment(FakeMedia(), 'This is a new comment', review=True) assert response is None
def test_create_comment(): """test comment creation""" response = comment(FakeMedia(), 'This is a new comment', spoiler=True) assert response is None
def comment(self, comment_body, spoiler=False, review=False): """Add a comment (shout or review) to this :class:`Move` on trakt.""" return comment(self, comment_body, spoiler, review)