def setUp(self): self.testInfo1 = personalInfo("test1", "0101111111", "aaaa") self.testInfo2 = personalInfo("test2", "0102222222", "bbbb") self.testInfo3 = personalInfo("test3", "0103333333", "cccc") self.list = linkedlist() self.list.append(self.testInfo1) self.list.append(self.testInfo2) self.list.append(self.testInfo3)
def __init__(self): #below vars self.MENU_INPUT = 1 self.MENU_REMOVE = 2 self.MENU_MODIFY = 3 self.MENU_SEARCH = 4 self.MENU_ALL_PRINT = 5 self.MENU_SAVE = 6 self.MENU_LOAD = 7 self.MENU_FINISH = 0 self.ERROR_NO_MENU = 1 self.ERROR_FULL = 2 self.ERROR_EMPTY = 3 self.ERROR_NOT_SEARCH = 4 self.ERROR_LOAD_FAIL = 5 self.list = linkedList.linkedlist()
def __init__(self): self.list = linkedList.linkedlist()