From 734aeb3b184cef8c58f947bfa83dfd225ebaa065 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Sun, 14 Feb 2016 00:32:19 +0300 Subject: test: refactoring --- test/cavp.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/cavp.py') diff --git a/test/cavp.py b/test/cavp.py index 88cc0ee..36ab6f7 100644 --- a/test/cavp.py +++ b/test/cavp.py @@ -174,7 +174,7 @@ class TestArchive(zipfile.ZipFile): def __init__(self, path): super().__init__(path) - def list_test_files(self): + def enum_test_files(self): with TemporaryDirectory() as tmp_dir: for p in self.namelist(): yield TestFile(self.extract(p, tmp_dir)) @@ -202,7 +202,7 @@ if __name__ == '__main__': archive = TestArchive(args.archive) exit_codes = [] - for test_file in archive.list_test_files(): + for test_file in archive.enum_test_files(): exit_codes.append(test_file.run_encryption_tests(tools, args.use_boxes)) exit_codes.append(test_file.run_decryption_tests(tools, args.use_boxes)) -- cgit v1.2.3