

@patch('braubuddy.envcontroller.tosr0x_usb.tosr0x')
def test_dummy_returned_if_no_devices(self, mk_tosr0x):
    'Dummy envcontroller is created if no real envcontrollers discovered.'
    mk_tosr0x.handler.return_value = []
    envcontroller = auto.AutoEnvController()
    self.assertIsInstance(envcontroller, dummy.DummyEnvController)

dataset/ETHPy150Open amorphic/braubuddy/braubuddy/tests/envcontroller/test_auto.py TestAuto.test_dummy_returned_if_no_devices/original