Beispiel #1
0
    def test_get_trip(self):
        gowalla = Gowalla(username=USERNAME, password=PASSWORD, api_key=API_KEY)

        get_result = gowalla.trips(id=TEST_TRIP_ID)

        self.assertEqual(type(get_result), types.DictType)
        self.assertNotEqual(get_result['description'], None)
Beispiel #2
0
 def test_list_trips(self):
     gowalla = Gowalla(username=USERNAME, password=PASSWORD, api_key=API_KEY)
 
     list_result = gowalla.trips()
         
     self.assertEqual(type(list_result), types.DictType)
     self.assertNotEqual(list_result['trips'][0]['name'], None)