class CloudDriverTestCase(unittest.TestCase):
    ''' Test cases for the cloud driver '''

    def setUp(self):
        self.cloud = CloudDriver(Auth("test", "test"))


    def empty_list(self, some_list):
        ''' for the generic driver listing should give an empty list
        to simplify aggregation'''
        assert len(some_list) == 0

    def test_list_instances(self):
        self.empty_list(self.cloud.list_instances())

    def test_list_keypairs(self):
        self.empty_list(self.cloud.list_keypairs())

    def test_list_sizes(self):
        self.empty_list(self.cloud.list_sizes())

    def test_list_security_groups(self):
        self.empty_list(self.cloud.list_security_groups())

    def test_list_floating_ips(self):
        self.empty_list(self.cloud.list_floating_ips())

    def test_list_quotas(self):
        self.empty_list(self.cloud.list_quotas())

    def test_list_usage(self):
        start = datetime.now() #"2013-07-01T00:00:00"
        end = datetime.now()#"2013-07-15T17:24:45.266255"
        self.empty_list(self.cloud.list_usage(start, end))
 def setUp(self):
     self.cloud = CloudDriver(Auth("test", "test"))