def test_len_collection(self):
first_feed = next(self._container.itervalues())
collection = first_feed.OpenCollection()
with RequestsMock() as rsp:
rsp.add(rsp.GET, re.compile('.*SELECT\+COUNT.*'),
json=json_count(collection.name), match_querystring=True)
len_collection = len(collection)
self.assertEqual(len_collection, NUM_TEST_POINTS)
评论列表
文章目录