  def testNetworkPolicyCreationNamespace(self, mock_create_func):
    """Test that creating a network policy provides the correct namespace."""
    network_policy = netpol.K8sNetworkPolicyWithSpec(
        k8s_mocks.MOCK_API_CLIENT, 'name', 'namespace-iwlgvtpb')
    network_policy.Create()
    self.assertEqual('namespace-iwlgvtpb', mock_create_func.call_args.args[0])
Test that creating a network policy provides the correct namespace.
tests/providers/kubernetes/test_netpol.py