MCPcopy Create free account
hub / github.com/bugy/script-server / assert_dir_files

Function assert_dir_files

src/tests/test_utils.py:504–508  ·  view source on GitHub ↗
(expected_files, dir_path, test_case: TestCase)

Source from the content-addressed store, hash-verified

502
503
504def assert_dir_files(expected_files, dir_path, test_case: TestCase):
505 expected_files_sorted = sorted(copy(expected_files))
506 actual_files = sorted(os.listdir(dir_path))
507
508 test_case.assertSequenceEqual(expected_files_sorted, actual_files)
509
510
511def assert_contains_sub_dict(test_case: TestCase, big_dict: dict, sub_dict: dict):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected