def test_setup_discovery(self, samsung_mock, wol_mock):
     """Testing setup of platform with discovery."""
     with mock.patch(
             'homeassistant.components.samsungtv.media_player.socket'):
         add_entities = mock.Mock()
         setup_platform(self.hass, {}, add_entities,
                        discovery_info=DISCOVERY_INFO)
 def test_setup(self, samsung_mock, wol_mock):
     """Testing setup of platform."""
     with mock.patch(
             'homeassistant.components.samsungtv.media_player.socket'):
         add_entities = mock.Mock()
         setup_platform(
             self.hass, WORKING_CONFIG, add_entities)
 def test_setup_none(self, samsung_mock, wol_mock, mocked_warn):
     """Testing setup of platform with no data."""
     with mock.patch(
             'homeassistant.components.samsungtv.media_player.socket'):
         add_entities = mock.Mock()
         setup_platform(self.hass, {}, add_entities, discovery_info=None)
         mocked_warn.assert_called_once_with("Cannot determine device")
         add_entities.assert_not_called()
 def test_setup_discovery(self, samsung_mock, wol_mock):
     """Testing setup of platform with discovery."""
     with mock.patch(
             'homeassistant.components.samsungtv.media_player.socket'):
         add_entities = mock.Mock()
         setup_platform(self.hass, {},
                        add_entities,
                        discovery_info=DISCOVERY_INFO)
 def test_setup_none(self, samsung_mock, wol_mock, mocked_warn):
     """Testing setup of platform with no data."""
     with mock.patch(
             'homeassistant.components.samsungtv.media_player.socket'):
         add_entities = mock.Mock()
         setup_platform(self.hass, {}, add_entities,
                        discovery_info=None)
         mocked_warn.assert_called_once_with("Cannot determine device")
         add_entities.assert_not_called()
 def test_setup(self, samsung_mock, wol_mock):
     """Testing setup of platform."""
     with mock.patch(
             'homeassistant.components.samsungtv.media_player.socket'):
         add_entities = mock.Mock()
         setup_platform(self.hass, WORKING_CONFIG, add_entities)