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)
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)