Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
async def test_add(self):
source = Mock()
mock_iter = AsyncMockIterator([
'asdf', 'qwer', 'zxcv'
])
source.paginate.return_value = mock_iter
res = await fetch_some_text(source)
self.assertEqual(res, 'asdfqwerzxcv')
mock_iter.assertFullyConsumed()
mock_iter.assertIterCount(3)