def test_analysis_folder_detail(self): a_result = [[13, 0, 0, 1, 2, 2, 6], [26, 0, 1, 3, 2, 2, 8], [14, 0, 0, 1, 2, 2, 6]] l_result, i_align_max, b_cancel = pl.analysis_folder( PATH_TESTSCRIPT, None, False, True, False, False, "", "") self.assertEqual(l_result, a_result) self.assertEqual(i_align_max, 0)
def test_analysis_folder_recur(self): a_result = [[13], [26], [15], [14]] l_result, i_align_max, b_cancel = pl.analysis_folder( PATH_TESTSCRIPT, None, False, False, False, True, "foldername", "__init__") self.assertEqual(l_result, a_result) self.assertEqual(i_align_max, 0)
def test_analysis_folder_detail_byfile(self): a_result = [['test_1.py', 13, 0, 0, 1, 2, 2, 6], ['test_3.py', 26, 0, 1, 3, 2, 2, 8], ['test_2.pyw', 14, 0, 0, 1, 2, 2, 6]] l_result, i_align_max, b_cancel = pl.analysis_folder( PATH_TESTSCRIPT, None, False, True, True, False, "", "") self.assertEqual(l_result, a_result) self.assertEqual(i_align_max, 10)
def test_analysis_folder(self): a_result = [[13], [26], [14]] l_result, i_align_max, b_cancel = pl.analysis_folder( PATH_TESTSCRIPT, None, False, False, False, False, "", "") self.assertEqual(l_result, a_result) self.assertEqual(i_align_max, 0)