@@ -0,0 +1,944 @@
+%22%22%22%0ABraubuddy Dummy thermometer unit tests.%0A%22%22%22%0A%0Aimport unittest%0Afrom mock import patch, call, MagicMock%0Afrom braubuddy.thermometer import auto %0Afrom braubuddy.thermometer import dummy %0Afrom braubuddy.thermometer import ds18b20_gpio %0Afrom braubuddy.thermometer import temper_usb %0Afrom braubuddy.thermometer import DeviceError%0Afrom braubuddy.thermometer import ReadError%0A%0Aclass TestAuto(unittest.TestCase):%0A%0A    @patch('braubuddy.thermometer.ds18b20_gpio.ds18b20')%0A    @patch('braubuddy.thermometer.temper_usb.temperusb')%0A    def test_dummy_returned_if_no_devices(self, mk_temperusb, mk_ds18b20):%0A        %22%22%22Dummy thermometer is created if no real thermometers discovered.%22%22%22%0A%0A        mk_ds18b20.DS18B20 = MagicMock(side_effect = Exception('Some Error'))%0A        mk_temperusb.TemperHandler.return_value.get_devices.return_value = %5B%5D%0A        thermometer = auto.AutoThermometer()%0A        self.assertIsInstance(thermometer, dummy.DummyThermometer)%0A

Add test from dummy thermometer.