def test_min(self): request = testing.DummyRequest(GET={"tags_min": 12}) info = tag_list(request) info["tags"] = list(info["tags"]) self.assertDictEqual(info, { 'starts_with': "a", 'tags_min': 12, "tags": [] })
def test_min(self): request = testing.DummyRequest(GET={"tags_min": 12}) info = tag_list(request) info["tags"] = list(info["tags"]) self.assertDictEqual(info, { 'starts_with': "a", 'tags_min': 12, "tags": [ ] })
def test_basic(self): request = testing.DummyRequest() info = tag_list(request) info["tags"] = list(info["tags"]) self.assertDictEqual(info, { 'starts_with': "a", 'tags_min': 1, "tags": [ {"name": "apple", "count": 1} ] })
def test_basic(self): request = testing.DummyRequest() info = tag_list(request) info["tags"] = list(info["tags"]) self.assertDictEqual( info, { 'starts_with': "a", 'tags_min': 1, "tags": [{ "name": "apple", "count": 1 }] })