Пример #1
0
 def test_load(self):
     feed = Feed.load(count=2, category=0)
     assert isinstance(feed, list)
     assert len(feed) == 2
     for item in feed:
         assert isinstance(item, Feed)
         assert item.category == 0
Пример #2
0
 def feed_global_current(self):
     return Feed.load(count=3)