Commit b490013a authored by auke.klazema's avatar auke.klazema

Renamed to pep8 method name

parent b749cfe2
......@@ -113,7 +113,7 @@ class PrologixGpibUsb(PortDevice):
# self._commandCount = self._serialPort.write(self._commandStr)
return
def getDevices(self):
def get_devices(self):
return self._devices
......
......@@ -31,7 +31,7 @@ class PrologixGpibUsbTest(unittest.TestCase):
def test_getDevices_returns_not_scanned_when_find_devices_is_false(self):
usb = hpib.PrologixGpibUsb(findDevices=False)
self.assertEqual(usb.getDevices(), 'Not scanned.')
self.assertEqual(usb.get_devices(), 'Not scanned.')
def test_raises_serial_exception_when_all_serial_ports_fail(self):
self.serial_mock.side_effect = SerialException
......@@ -82,7 +82,7 @@ class PrologixGpibUsbTest(unittest.TestCase):
self.serial_mock.return_value.readline.return_value = "Device 1"
usb = hpib.PrologixGpibUsb(findDevices=True)
devices = usb.getDevices()
devices = usb.get_devices()
self.assertEqual(len(devices), 2 * 31)
self.assertEqual(devices[0], 0)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment