コード例 #1
0
 def test_listing_handlers_filled_during_migration(self):
     migrate_legacy_comments()
     lh = Listing.objects.get_queryset_wrapper(self.category_nested, source=comments_settings.MOST_COMMENTED_LH)
     tools.assert_equals(1, lh.count())
コード例 #2
0
    def test_comments_successfully_migrated(self):
        migrate_legacy_comments()

        tools.assert_equals(10, self.comment_list.count())
        c = self.comment_list.last_comment()
        tools.assert_equals('9th', c.comment)
コード例 #3
0
    def test_comments_successfully_migrated(self):
        migrate_legacy_comments()

        tools.assert_equals(10, self.comment_list.count())
        c = self.comment_list.last_comment()
        tools.assert_equals("9th", c.comment)