def test_top_tags(self): tags = Stats.top_tags() tags = [(tag.name, count) for tag, count in tags] assert_equal(tags, [('tag1', 3), ('tag2', 1)])
def test_top_tags(self): tags = Stats.top_tags() tags = [(tag.name, count) for tag, count in tags] assert tags == [("tag1", 1)]
def test_top_tags(self): tags = Stats.top_tags() tags = [(tag.name, count) for tag, count in tags] assert_equal(tags, [('tag1', 1)])