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