Exemplo n.º 1
0
 def test_load_ok(self):
     """
     Tests DLL loading with a correct path
     """
     try:
         d = WinDivert()
         assert os.path.abspath(d.get_reference()._name) == DEFAULT_DLL_PATH
     except WindowsError as e:
         self.fail("WinDivert() constructor raised %s" % e)
Exemplo n.º 2
0
 def test_load_ok(self):
     """
     Tests DLL loading with a correct path
     """
     try:
         d = WinDivert(self.dll_path)
         self.assertEquals(os.path.abspath(d.get_reference()._name),
                           os.path.abspath(self.dll_path))
     except WindowsError as e:
         self.fail("WinDivert() constructor raised %s" % e)
Exemplo n.º 3
0
 def test_load_ok(self):
     """
     Tests DLL loading with a correct path
     """
     try:
         d = WinDivert(self.dll_path)
         self.assertEquals(os.path.abspath(d.get_reference()._name),
                           os.path.abspath(self.dll_path))
     except WindowsError as e:
         self.fail("WinDivert() constructor raised %s" % e)