def test_rating(): timestamps = [datetime.now(), None] for timestamp in timestamps: response = rate(FakeMedia(), 10, timestamp) assert response['added'] == { 'episodes': 2, 'movies': 1, 'seasons': 1, 'shows': 1 } assert len(response['not_found']['movies']) == 1
def rate(self, rating): """Rate this :class:`TVEpisode` on trakt. Depending on the current users settings, this may also send out social updates to facebook, twitter, tumblr, and path. """ rate(self, rating)
def test_rating(): timestamps = [datetime.now(), None] for timestamp in timestamps: response = rate(FakeMedia(), 10, timestamp) assert response is None