From: 
Subject: Debian changes

The Debian packaging of python-oemthermostat is maintained in git, using a workflow
similar to the one described in dgit-maint-merge(7).
The Debian delta is represented by this one combined patch; there isn't a
patch queue that can be represented as a quilt series.

A detailed breakdown of the changes is available from their canonical
representation -- git commits in the packaging repository.
For example, to see the changes made by the Debian maintainer in the first
upload of upstream version 1.2.3, you could use:

    % git clone https://git.dgit.debian.org/python-oemthermostat
    % cd python-oemthermostat
    % git log --oneline 1.2.3..debian/1.2.3-1 -- . ':!debian'

(If you have dgit, use `dgit clone python-oemthermostat`, rather than plain `git clone`.)

We don't use debian/source/options single-debian-patch because it has bugs.
Therefore, NMUs etc. may nevertheless have made additional patches.

---

diff --git a/oemthermostat/tests/test_thermostat.py b/oemthermostat/tests/test_thermostat.py
index c6bcef0..17459d7 100644
--- a/oemthermostat/tests/test_thermostat.py
+++ b/oemthermostat/tests/test_thermostat.py
@@ -1,6 +1,14 @@
 import pytest
+import requests
+from unittest.mock import patch
+
+from oemthermostat import Thermostat
 
 
 def test_construction():
-    with pytest.raises(Exception):
-        therm = Thermostat(host="notahost")
+    with patch("oemthermostat.client.requests.get",
+               side_effect=requests.exceptions.ConnectionError("unreachable")) as get:
+        with pytest.raises(requests.exceptions.ConnectionError,
+                           match="Connection to Thermostat failed with: unreachable"):
+            Thermostat(host="notahost")
+    get.assert_called_once_with("http://notahost:80/index.html")
