Extend test for group config

pull/6198/head
Paulus Schoutsen 2017-02-23 21:57:48 -08:00
parent 58eb32bce4
commit 34a7aa2376
1 changed files with 2 additions and 0 deletions

View File

@ -80,6 +80,7 @@ def test_update_device_config(hass, test_client):
resp = yield from client.post(
'/api/config/group/config/hello_beer', data=json.dumps({
'name': 'Beer',
'entities': ['light.top', 'light.bottom'],
}))
assert resp.status == 200
@ -87,6 +88,7 @@ def test_update_device_config(hass, test_client):
assert result == {'result': 'ok'}
orig_data['hello_beer']['name'] = 'Beer'
orig_data['hello_beer']['entities'] = ['light.top', 'light.bottom']
assert written[0] == orig_data