def test_03_AddrLists(self): """ I don't know how to test the returned list for validity. Uncomment the print to see what your computer returned. """ l_names = Interfaces.find_all_interface_names() # On my laptop: returns 7 interfaces. # print(PrettyFormatAny.form(l_names, 'Address Lists')) _l_ret = Interfaces._find_addr_lists(l_names[0])
def test_01_AllIfaceNames(self): """ This will be different on different computers I don't know how to test the returned list for validity. Uncomment the print to see what your computer returned. """ l_names = Interfaces.find_all_interface_names() # print(PrettyFormatAny.form(l_names, 'B1-01 Names')) self.assertGreater(len(l_names), 1)
def test_03_AddrLists(self): """ I don't know how to test the returned list for validity. Uncomment the print to see what your computer returned. """ l_names = Interfaces.find_all_interface_names() # On my laptop: returns 7 interfaces. print(PrettyFormatAny.form(l_names, 'Address Lists')) l_ret = Interfaces._find_addr_lists(l_names[0]) print(PrettyFormatAny.form(l_ret, 'Address Lists'))
def test_01_AllIfaceNames(self): """ This will be different on different computers I don't know how to test the returned list for validity. Uncomment the print to see what your computer returned. """ print('B1-01') l_names = Interfaces.find_all_interface_names() print(PrettyFormatAny.form(l_names, 'B1-01 Names')) self.assertGreater(len(l_names), 1)
def test_04_OneInterfaces(self): l_names = Interfaces.find_all_interface_names() _l_node = Interfaces._get_one_interface(l_names[1])
def test_04_OneInterfaces(self): l_names = Interfaces.find_all_interface_names() l_node = Interfaces._get_one_interface(l_names[1]) print(PrettyFormatAny.form(l_node, 'Node Interfaces'))