Пример #1
0
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)
Пример #2
0
def test_parsing_of_good_tweets(tweet):
    # Checks that these tweets are parsed without exceptions
    parse(tweet)