コード例 #1
0
 def test_check_pending_returns_correct_list(self):
     """
     tests that check_pending only returns directories for pending or acceptance tests
     """
     sample_dirs = ['/bla/pending_tests', '/bli/blo/acceptance_tests', '/bla/blup/some_other_dir']
     expected_dirs = ['/bla/pending_tests', '/bli/blo/acceptance_tests']
     cfu = CommandFileUtils(self.dist_version, self.log_file, self.log_level)
     for s in sample_dirs:
         cfu.check_pending(s)
     self.assertEqual(expected_dirs, cfu.pending_dirs, cfu.pending_dirs)