示例#1
0
    def setUp(self):

        self.test_logger = Capt.set_logger(self, 'test_logger', logging.DEBUG)
        self.empty_dict = {}
        self.one_dict = {'code_upgrade': 'yes'}
        self.two_dict = {'code_upgrade': 'yes', 'test_code_upgrade': 'yes'}
        self.one_bad_dict = {'fail': 'yes'}
        self.one_test_dict = {'test_code_upgrade': 'yes'}
        self.devices = ['10.10.10.10']
示例#2
0
    def setUp(self):

        self.test_logger = Capt.set_logger(self, 'test_logger', logging.DEBUG)
        self.loopback = "127.0.0.1"
        self.blackhole = "203.0.113.0"  # reserved for documentation (0.0.0.0 is localhost on linux)

        self.test_list1 = ['a', 'b']
        self.test_list2 = ['b', 'c']
        self.test_list3 = ['d']
        self.test_list4 = ['d', 'e']
示例#3
0
    def test_set_logger(self):

        self.assertTrue(Capt.set_logger(self, 'T.E.S.T', logging.INFO))