예제 #1
0
 def get(self,parent = None):
     if not parent:parent = None
     lst = city.getList(parent)
     self.write(dict(status=True,data = lst))
예제 #2
0
 def test_getList_accuracy1(self):
     lst = getList(self.parent_name)
     self.assertEqual(len(lst),1)
예제 #3
0
 def get(self, parent=None):
     if not parent: parent = None
     lst = city.getList(parent)
     self.write(dict(status=True, data=lst))