def METHOD_NAME():
    result = invoke_and_assert(
        ["kubernetes", "manifest", "agent", "-n", "test_namespace"],
        expected_output_contains="kind: Deployment",
    )
    manifests = yaml.load_all(result.stdout, yaml.SafeLoader)
    assert manifests
    for manifest in manifests:
        if manifest["kind"] not in ["ClusterRole", "ClusterRoleBinding"]:
            assert manifest["metadata"]["namespace"] == "test_namespace"