Renamed mock_switch_platform to mock_toggledevice_platform
This commit is contained in:
1 parent
3e348880d5
commit
845a028d42
3 files changed
+26
-23
No files matched your search
+3
-3
@@ -11,7 +11,7 @@ import homeassistant as ha
|
||||
import homeassistant.loader as loader
|
||||
import homeassistant.components.http as http
|
||||
|
||||
import mock_switch_platform
|
||||
import mock_toggledevice_platform
|
||||
|
||||
|
||||
class TestLoader(unittest.TestCase):
|
||||
@@ -26,10 +26,10 @@ class TestLoader(unittest.TestCase):
|
||||
|
||||
def test_set_component(self):
|
||||
""" Test if set_component works. """
|
||||
loader.set_component('switch.test', mock_switch_platform)
|
||||
loader.set_component('switch.test', mock_toggledevice_platform)
|
||||
|
||||
self.assertEqual(
|
||||
mock_switch_platform, loader.get_component('switch.test'))
|
||||
mock_toggledevice_platform, loader.get_component('switch.test'))
|
||||
|
||||
def test_get_component(self):
|
||||
""" Test if get_component works. """
|
||||
|
||||
Reference in new issue
Block a user