Exemple #1
0
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')
Exemple #2
0
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')
Exemple #3
0
 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)
Exemple #4
0
def test_create_comment():
    """test comment creation"""
    response = comment(FakeMedia(), 'This is a new comment', spoiler=True)
    assert response.get('comment')
Exemple #5
0
 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)
Exemple #6
0
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
Exemple #7
0
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
Exemple #8
0
def test_create_comment():
    """test comment creation"""
    response = comment(FakeMedia(), 'This is a new comment', spoiler=True)
    assert response is None
Exemple #9
0
 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)