old_contents: from feedly.feeds.aggregated_feed.redis import RedisAggregatedFeed
  from feedly.tests.feeds.aggregated_feed.base import TestAggregatedFeed
  
  
  class TestRedisAggregatedFeed(TestAggregatedFeed):
      feed_cls = RedisAggregatedFeed
  
new_contents: from feedly.feeds.aggregated_feed.redis import RedisAggregatedFeed
  from feedly.tests.feeds.aggregated_feed.base import TestAggregatedFeed,\
      implementation
  from feedly.activity import AggregatedActivity
  from feedly.tests.feeds.redis import CustomActivity
  
  
  class CustomAggregated(AggregatedActivity):
      pass
  
  
  class RedisCustomAggregatedFeed(RedisAggregatedFeed):
      activity_class = CustomActivity
      aggregated_activity_class = CustomAggregated
  
  
  class TestRedisAggregatedFeed(TestAggregatedFeed):
      feed_cls = RedisAggregatedFeed
  
  class TestRedisCustomAggregatedFeed(TestAggregatedFeed):
      feed_cls = RedisCustomAggregatedFeed
      activity_class = CustomActivity
      aggregated_activity_class = CustomAggregated
  
      @implementation
      def test_custom_activity(self):
          assert self.test_feed.count() == 0
          self.feed_cls.insert_activity(
              self.activity
          )
          self.test_feed.add(self.activity)
          assert self.test_feed.count() == 1
          results = self.test_feed[:10][0]
          assert type(results[0]) == self.aggregated_activity_class
          assert type(results[0].activities[0]) == self.activity_class
  
subject: test case for custom feed