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