def cf_list_containers(self):
        self.logit("Listing the Cloud Files Containers...")
        conts = self.cf.get_all_containers()
        if conts:
            for cont in conts:
                try:
                    nm = cont.name
                    num = cont.object_count
                    size = cont.total_bytes
                    self.logit("%s - %s files, %s bytes" % (nm, num, size))
                except Exception as e:
                    self.logit("FAIL! Container description", e)
        else:
            self.logit("FAIL!")
            self.failures.append("CONTAINER LISTING")
dataset/ETHPy150Open rackspace/pyrax/tests/integrated/smoketest.py/SmokeTester.cf_list_containers/original