Esempio n. 1
0
        def assert_(inputstr, expect_list):
            actual_list = util.range2list(inputstr)

            self.assertEqual(len(expect_list), len(actual_list))
            for i in range(len(actual_list)):
                e = expect_list[i]
                a = actual_list[i]
                self.assertEqual(e, a, 'expect:%s\nactual:%s' % (expect_list, actual_list))