Exemplo n.º 1
0
def test_skip_check_custom(text, passed):
    filt = skip_check(['#nowplaying', '@boring'])
    tweet = Status()
    tweet.text = text
    assert filt(tweet) is passed
Exemplo n.º 2
0
def test_skip_check():
    filt = skip_check([])
    tweet = Status()
    tweet.text = 'This is a test #nowplaying'
    assert filt(tweet) is True