Added initial Chromecast test coverage

This commit is contained in:
Paulus Schoutsen committed 2014-11-23 22:18:40 -08:00
1 parent fa1b5b846e
commit 244e2a0e7e
3 files changed
+106 -3

No files matched your search

+15
View File
@@ -0,0 +1,15 @@
"""
test.helper
~~~~~~~~~~~
Helper method for writing tests.
"""
def mock_service(hass, domain, service):
calls = []
hass.services.register(
domain, service, lambda call: calls.append(call))
return calls