def test_params(self):
        c = CmdHostList()
        c.num_hosts(5).path("path").timeout(300).silent().wait()

        p = params(c)
        assert 5 == p["num_hosts"]
        assert "path" == p["path"]
        assert 300 == p["timeout_seconds"]
        assert p["silent"]
        assert p["wait"]
    def test_invalid_timeout(self):
        c = CmdHostList()

        with pytest.raises(TypeError):
            c.timeout("hello world")
    def test_invalid_path(self):
        c = CmdHostList()

        with pytest.raises(TypeError):
            c.path(42)
    def test_invalid_num_hosts(self):
        c = CmdHostList()

        with pytest.raises(TypeError):
            c.num_hosts("hello world")
    def test_command_basics(self):
        c = CmdHostList()

        assert c.validate()
        assert "host.list" == command_name(c)