Пример #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")
Пример #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")
Пример #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")
Пример #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")
Пример #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")
Пример #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")