def test_parsing_of_bad_tweets(tweet): # Checks that tweets which are not written # properly actually raise exceptions with pytest.raises(Exception) as e_info: parse(tweet)
def test_parsing_of_good_tweets(tweet): # Checks that these tweets are parsed without exceptions parse(tweet)