def test_nonexistent(): with vcr.use_cassette('test/fixtures/stock_none'): ret = on_message({"text": u"bana"}, None) eq_(ret, None)