aiounittest.mock.AsyncMockIterator

Here are the examples of the python api aiounittest.mock.AsyncMockIterator taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

2 Examples 7

3 Source : test_aws_iaas_driver.py
with Apache License 2.0
from DreamLab

    def paginate(self, PaginationConfig={}, Filters={}):
        return AsyncMockIterator([{
            'Reservations': [{'Instances': [ec2_mock]}]
        }])


class TestAwsIaaSDriver(AsyncTestCase):

0 Source : test_aws_preset_driver.py
with Apache License 2.0
from DreamLab

    def paginate(self, PaginationConfig={}, Filters={}):
        return AsyncMockIterator(self.items)


class TestAwsPresetDriver(AsyncTestCase):