def make_data_list(length = 8): return (utils.get_array_data1(length), utils.get_array_data2(length), utils.get_list_data1(length), utils.get_list_data2(length), utils.get_str_data1(length), utils.get_str_data1(length))
# Integration tests import utils import unittest import usb.core import devinfo import usb._interop import usb.util import usb.backend.libusb0 as libusb0 import usb.backend.libusb1 as libusb1 import usb.backend.openusb as openusb data_list = (utils.get_array_data1(), utils.get_array_data2(), utils.get_list_data1(), utils.get_list_data2(), utils.get_str_data1(), utils.get_str_data1()) class DeviceTest(unittest.TestCase): def __init__(self, dev): unittest.TestCase.__init__(self) self.dev = dev def runTest(self): try: self.test_attributes() self.test_timeout() self.test_set_configuration() self.test_set_interface_altsetting() self.test_write_read()
# Integration tests import utils import unittest import usb.core import devinfo import usb.util import usb.backend.libusb01 as libusb01 import usb.backend.libusb10 as libusb10 import usb.backend.openusb as openusb data_list = (utils.get_array_data1(), utils.get_array_data2(), utils.get_list_data1(), utils.get_list_data2(), utils.get_str_data1(), utils.get_str_data1()) class DeviceTest(unittest.TestCase): def __init__(self, dev): unittest.TestCase.__init__(self) self.dev = dev def runTest(self): try: self.test_attributes() self.test_timeout() self.test_set_configuration() self.test_set_interface_altsetting() self.test_write_read()