'Test that entity_id is set correctly from object_id.'

def test_entity_id_set_correctly(self):

    init_args = [self.hass, 'test_device_name', 'Test    friendly    name!', "echo    'on    command'", "echo    'off    command'", False, None]
    test_switch = command_line.CommandSwitch(*init_args)
    self.assertEqual(test_switch.entity_id, 'switch.test_device_name')
    self.assertEqual(test_switch.name, 'Test    friendly    name!')
