text: # coding: utf-8
  
  """
      Metal API
  
      This is the API for Equinix Metal. The API allows you to programmatically interact with all of your Equinix Metal resources, including devices, networks, addresses, organizations, projects, and your user account.  The official API docs are hosted at <https://metal.equinix.com/developers/api>.   # noqa: E501
  
      The version of the OpenAPI document: 1.0.0
      Contact: support@equinixmetal.com
      Generated by: https://openapi-generator.tech
  """
  
  
  from __future__ import absolute_import
  
  import unittest
  import datetime
  
  import metal
  from metal.types.bgp_session_neighbors import BgpSessionNeighbors  # noqa: E501
  from metal.rest import ApiException
  
  class TestBgpSessionNeighbors(unittest.TestCase):
      """BgpSessionNeighbors unit test stubs"""
  
      def setUp(self):
          pass
  
      def tearDown(self):
          pass
  
      def make_instance(self, include_optional):
          """Test BgpSessionNeighbors
              include_option is a boolean, when False only required
              params are included, when True both required and
              optional params are included """
          # model = metal.models.bgp_session_neighbors.BgpSessionNeighbors()  # noqa: E501
          if include_optional :
              return BgpSessionNeighbors(
                  bgp_neighbors = [
                      metal.models.bgp_neighbor_data.BgpNeighborData(
                          address_family = 4.0, 
                          customer_as = 65000.0, 
                          customer_ip = '10.32.16.1 (IPv4) or 2604:1380:4111:2700::1 (IPv6)', 
                          md5_enabled = True, 
                          md5_password = '', 
                          multihop = True, 
                          peer_as = 65530.0, 
                          peer_ips = [169.254.255.1, 169.254.255.2], 
                          routes_in = [
                              metal.models.bgp_neighbor_data_routes_in.BgpNeighborData_routes_in(
                                  route = '10.32.16.0/31', 
                                  exact = True, )
                              ], 
                          routes_out = [
                              metal.models.bgp_neighbor_data_routes_out.BgpNeighborData_routes_out(
                                  route = '0.0.0.0/0', 
                                  exact = True, )
                              ], )
                      ]
              )
          else :
              return BgpSessionNeighbors(
          )
  
      def testBgpSessionNeighbors(self):
          """Test BgpSessionNeighbors"""
          inst_req_only = self.make_instance(include_optional=False)
          inst_req_and_optional = self.make_instance(include_optional=True)
  
  if __name__ == '__main__':
      unittest.main()
  