def test_iter_one_item(self):
self.r.request = Mock()
self.r.request.return_value = Mock(), {'meta': {'key': 'foos', 'next_page_url': None}, 'foos': [{'sid': '123'}]}
items = self.r.iter()
advance_iterator(items)
self.assertRaises(StopIteration, advance_iterator, items)
评论列表
文章目录