'Test with state value.'

def test_assumed_state_should_be_true_if_command_state_is_none(self):

    init_args = [self.hass, 'test_device_name', 'Test    friendly    name!', "echo    'on    command'", "echo    'off    command'", None, None]
    no_state_device = command_line.CommandSwitch(*init_args)
    self.assertTrue(no_state_device.assumed_state)
    init_args[(-2)] = 'cat    {}'
    state_device = command_line.CommandSwitch(*init_args)
    self.assertFalse(state_device.assumed_state)
