Exemplo n.º 1
0
 def test_qcitytrimspaces(self):
     """
     test qdCity returns city string with spaces trimmed from ends
     """
     self.qd = {'city': [' Sea ']}
     self.assertEqual(qdCity(self.qd), "Sea")
Exemplo n.º 2
0
 def test_qcitysinglespaces(self):
     """
     test qdCity returns city string with only single spaces in string
     """
     self.qd = {'city': ['Se   a   tt']}
     self.assertEqual(qdCity(self.qd), "Se a tt")
Exemplo n.º 3
0
 def test_cityinqd(self):
     """
      testing qdCity positive test for city in query dict
     """
     self.qd = {'city': ['Sea']}
     self.assertEqual(qdCity(self.qd), "Sea")
Exemplo n.º 4
0
 def test_qcitytrimspaces(self):
     """
     test qdCity returns city string with spaces trimmed from ends
     """
     self.qd = {'city':[' Sea ']}
     self.assertEqual(qdCity(self.qd), "Sea")
Exemplo n.º 5
0
 def test_qcitysinglespaces(self):
     """
     test qdCity returns city string with only single spaces in string
     """
     self.qd = {'city':['Se   a   tt']}
     self.assertEqual(qdCity(self.qd), "Se a tt")
Exemplo n.º 6
0
 def test_cityinqd(self):
     """
      testing qdCity positive test for city in query dict
     """
     self.qd = {'city':['Sea']}
     self.assertEqual(qdCity(self.qd), "Sea")