def test_namespace(kubernetes: Kubernetes) -> Generator[str, None, None]: namespace = kubernetes.create_namespace() yield namespace kubernetes.delete_namespace()
def test_create_namespace_named(kubernetes: Kubernetes) -> None: namespace = "testing-2" assert kubernetes.create_namespace(namespace) == namespace kubernetes.delete_namespace(namespace)