Files
urh/tests/test_win_native_backend.py
2017-02-25 09:45:30 +01:00

22 lines
732 B
Python

import unittest
import sys
class TestWhitening(unittest.TestCase):
def test_native_backends_installed(self):
if sys.platform == "win32":
import os
cur_dir = os.path.dirname(__file__) if not os.path.islink(__file__) else os.path.dirname(
os.readlink(__file__))
dll_dir = os.path.realpath(os.path.join(cur_dir, "..", "src", "urh", "dev", "native", "lib", "win"))
os.environ['PATH'] = dll_dir + ';' + os.environ['PATH']
# noinspection PyUnresolvedReferences
from urh.dev.native.lib import hackrf
# noinspection PyUnresolvedReferences
from urh.dev.native.RTLSDR import RTLSDR
self.assertTrue(True)