def test_commit(): with vcr.use_cassette('test/fixtures/commit.yaml'): ret = on_message({"text": u"!commit"}, None) assert 'stuff' in ret