Exemplo n.º 1
0
Arquivo: tag.py Projeto: Azula/votabo
 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": []
     })
Exemplo n.º 2
0
Arquivo: tag.py Projeto: Azula/votabo
 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": [
         ]
     })
Exemplo n.º 3
0
Arquivo: tag.py Projeto: Azula/votabo
 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}
         ]
     })
Exemplo n.º 4
0
Arquivo: tag.py Projeto: Azula/votabo
 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
             }]
         })