def test_qcitytrimspaces(self): """ test qdCity returns city string with spaces trimmed from ends """ self.qd = {'city': [' Sea ']} self.assertEqual(qdCity(self.qd), "Sea")
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")
def test_cityinqd(self): """ testing qdCity positive test for city in query dict """ self.qd = {'city': ['Sea']} self.assertEqual(qdCity(self.qd), "Sea")
def test_qcitytrimspaces(self): """ test qdCity returns city string with spaces trimmed from ends """ self.qd = {'city':[' Sea ']} self.assertEqual(qdCity(self.qd), "Sea")
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")
def test_cityinqd(self): """ testing qdCity positive test for city in query dict """ self.qd = {'city':['Sea']} self.assertEqual(qdCity(self.qd), "Sea")