def test_extract_ld_library_paths(self): file_path = self._write_conf_file("""# This is a comment /foo/bar /colon:/separated,/comma\t/tab /space # This is another comment /baz""") self.assertThat( elf._extract_ld_library_paths(file_path), Equals(['/foo/bar', '/colon', '/separated', '/comma', '/tab', '/space', '/baz']))
def test_extract_ld_library_paths(self): file_path = self._write_conf_file("""# This is a comment /foo/bar /colon:/separated,/comma\t/tab /space # This is another comment /baz""") self.assertThat( elf._extract_ld_library_paths(file_path), Equals([ "/foo/bar", "/colon", "/separated", "/comma", "/tab", "/space", "/baz" ]), )