import unittest from tools.step_service.step_tree import normalize_deleted_paths class StepTreeTests(unittest.TestCase): def test_parent_path_removes_redundant_children(self): self.assertEqual( normalize_deleted_paths(["0/1", "0", "1/0", "1/0/2"]), ["0", "1/0"], ) if __name__ == "__main__": unittest.main()