-def test_API_friendship_exists():
- assert True == twitter.friendships.exists(
- user_a='ptttest0001', user_b='sixohsix')
- assert False == twitter.friendships.exists(
- user_a='gruber', user_b='ptttest0001')
+def test_search():
+ t_search = Twitter(domain='search.twitter.com')
+ results = t_search.search(q='foo')
+ assert results
+
+
+def test_get_trends():
+ # This is one method of inserting parameters, using named
+ # underscore params.
+ world_trends = twitter.trends._woeid(_woeid=1)
+ assert world_trends
+
+
+def test_get_trends_2():
+ # This is a nicer variation of the same call as above.
+ world_trends = twitter.trends._(1)
+ assert world_trends
+
+
+def test_get_trends_3():
+ # Of course they broke it all again in 1.1...
+ assert twitter11.trends.place(_id=1)
+
+def test_TwitterHTTPError_raised_for_invalid_oauth():
+ test_passed = False
+ try:
+ twitter11_na.statuses.mentions_timeline()
+ except TwitterHTTPError:
+ # this is the error we are looking for :)
+ test_passed = True
+ assert test_passed
+