class APIBasicTests(unittest.TestCase): ''' Basic tests that will exercise the APIClient ''' def setUp(self): ''' Setup for test cases ''' # initialize the api client self.apiclient = APIClient(auth_user=constants.TEST_USER, auth_key=constants.TEST_KEY, server=constants.TEST_SERVER, version=constants.TEST_VERSION) def tearDown(self): ''' Teardown for test cases ''' pass def test_view_inbox(self): ''' Tests we can see our inbox ''' inbox = self.apiclient.get(constants.URL_INBOX) self.failUnlessEqual(type(inbox.objects), type([]), "Expect to find an list of inbox elements")