def test_assumed_state_should_be_true_if_command_state_is_false(self):
        self.hass = get_test_home_assistant()

        # Set state command to false
        statecmd = False

        no_state_device = command_line.CommandSwitch(self.hass, "Test", "echo",
                                                     "echo", statecmd, None)
        self.assertTrue(no_state_device.assumed_state)

        # Set state command
        statecmd = 'cat {}'

        state_device = command_line.CommandSwitch(self.hass, "Test", "echo",
                                                  "echo", statecmd, None)
        self.assertFalse(state_device.assumed_state)
Execute a ``machinectl pull-raw`` to download a .tar container image,
dataset/ETHPy150Open home-assistant/home-assistant/tests/components/switch/test_command_line.py/TestCommandSwitch.test_assumed_state_should_be_true_if_command_state_is_false--crossover with--dataset/ETHPy150Open saltstack/salt/salt/modules/nspawn.py/pull_tar