def test_favorites(): tweeter = Tweeter(TEST_ACCOUNT) faves = tweeter.get_favorites() print yaml.dump(faves) assert_yaml_equals(faves, FAVORITES)
def test_lookup_user(): tweeter = Tweeter(TEST_ACCOUNT) assert tweeter.lookup_user() tweeter = Tweeter(JUNK_ACCOUNT) assert not tweeter.lookup_user()