Skip to content

Commit 0ae1397

Browse files
committed
More tests.
1 parent 126c3ab commit 0ae1397

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

tests/test_rdf_urls.py

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,36 @@ def test_rdf_windows_resource_icons(self):
8787
self.assertEqual(entity_type, "win32/resource")
8888
self.assertEqual(entity_id_dict, {u'GroupName': u'2', u'Name': u'C:/Windows/System32/notepad.exe'})
8989

90+
@unittest.skipIf(not is_platform_windows, "Windows only")
91+
@unittest.skip("Not implemented yet")
92+
def test_rdf_file_msvc_vcxproj(self):
93+
result_graph = self._check_script("/survol/sources_types/CIM_DataFile/file_msvc_vcxproj.py?xid=.")
94+
self.assertTrue(len(result_graph) > 0)
95+
96+
@unittest.skipIf(not is_platform_windows, "Windows only")
97+
@unittest.skip("Not implemented yet")
98+
def test_rdf_file_msvc_sln(self):
99+
result_graph = self._check_script("/survol/sources_types/CIM_DataFile/file_msvc_sln.py?xid=.")
100+
self.assertTrue(len(result_graph) > 0)
101+
102+
@unittest.skipIf(not is_platform_linux, "Linux only")
103+
def test_rdf_file_symlinks(self):
104+
test_dir_path = os.path.join(os.path.dirname(__file__), "SampleDirSymbolicLinks")
105+
result_graph = self._check_script(
106+
"/survol/sources_types/CIM_DataFile/file_symlinks.py?xid=CIM_DataFile.Name=%s"
107+
% test_dir_path)
108+
print("Result=", len(result_graph))
109+
for s, p, o in result_graph:
110+
print(" ", s, p, o)
111+
112+
# tests\SampleDirSymbolicLinks
113+
# physical_directory.dir
114+
# physical_subfile.dat
115+
# physical_file.dat
116+
# symlink_to_physical_directory
117+
# symlink_to_physical_file
118+
# symlink_to_subphysical_file
119+
90120

91121
@unittest.skipIf(not is_platform_windows, "Windows only")
92122
class MimeWindowsResourceIconsTest(unittest.TestCase):

0 commit comments

Comments
 (0)