Use voluptuous for file (#3049)

This commit is contained in:
Pascal Vizeli authored and GitHub committed 2016-08-31 18:12:34 +02:00
1 parent dfee443312
commit 705b3571f4
2 files changed
+19 -14

No files matched your search

+4 -3
View File
@@ -8,6 +8,7 @@ import homeassistant.components.notify as notify
from homeassistant.components.notify import (
ATTR_TITLE_DEFAULT)
import homeassistant.util.dt as dt_util
from homeassistant.bootstrap import _setup_component
from tests.common import get_test_home_assistant
@@ -25,11 +26,11 @@ class TestNotifyFile(unittest.TestCase):
def test_bad_config(self):
"""Test set up the platform with bad/missing config."""
self.assertFalse(notify.setup(self.hass, {
self.assertFalse(_setup_component(self.hass, notify.DOMAIN, {
'notify': {
'name': 'test',
'platform': 'file',
}
},
}))
@patch('homeassistant.util.dt.utcnow')
@@ -45,7 +46,7 @@ class TestNotifyFile(unittest.TestCase):
'name': 'test',
'platform': 'file',
'filename': filename,
'timestamp': 0
'timestamp': False,
}
}))
title = '{} notifications (Log started: {})\n{}\n'.format(