  def testGetNatIps(self, mock_get_operation):
    """Tests that external IPv4 addresses are properly parsed."""
    mock_get_operation.return_value = {'networkInterfaces': gcp_mocks.MOCK_NETWORK_INTERFACES}
    self.assertListEqual(
        gcp_mocks.FAKE_INSTANCE.GetNatIps(), ['0.0.0.0'])
Tests that external IPv4 addresses are properly parsed.
tests/providers/gcp/internal/test_compute.py