@staticmethod
    def create_availability_zones(attrs=None, count=2):
        availability_zones = []
        for i in range(0, count):
            availability_zone = \
                FakeAvailabilityZone.create_one_availability_zone(attrs)
            availability_zones.append(availability_zone)

        return availability_zones
Captures content into a context variable.
dataset/ETHPy150Open dtroyer/python-openstackclient/openstackclient/tests/compute/v2/fakes.py/FakeAvailabilityZone.create_availability_zones--crossover with--dataset/ETHPy150Open hzlf/openbroadcast/website/apps/tools/templatetags/capture.py/do_capture