1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 12:59:34 +00:00

Make sure we always sent content-length header

This commit is contained in:
Paulus Schoutsen
2016-03-27 11:57:15 -07:00
parent 4cbd49921f
commit 7cb69ae9d9
4 changed files with 38 additions and 82 deletions

View File

@@ -104,8 +104,6 @@ class TestAPI(unittest.TestCase):
_url(const.URL_API_STATES_ENTITY.format("test.test")),
headers=HA_HEADERS)
self.assertEqual(req.headers['content-length'], str(len(req.content)))
data = ha.State.from_dict(req.json())
state = hass.states.get("test.test")