Exemplo n.º 1
0
 def test_create_port(self, mock):
     """
     Test if it creates a new port
     """
     self.assertTrue(
         neutron.create_port("Salt", "SALTSTACK", device_id="800", admin_state_up=True, profile="openstack1")
     )
Exemplo n.º 2
0
 def test_create_port(self, mock):
     '''
     Test if it creates a new port
     '''
     self.assertTrue(neutron.create_port('Salt', 'SALTSTACK',
                                         device_id='800',
                                         admin_state_up=True,
                                         profile='openstack1'))
Exemplo n.º 3
0
 def test_create_port(self, mock):
     '''
     Test if it creates a new port
     '''
     self.assertTrue(
         neutron.create_port('Salt',
                             'SALTSTACK',
                             device_id='800',
                             admin_state_up=True,
                             profile='openstack1'))
Exemplo n.º 4
0
 def test_create_port(self):
     """
     Test if it creates a new port
     """
     self.assertTrue(
         neutron.create_port(
             "Salt",
             "SALTSTACK",
             device_id="800",
             admin_state_up=True,
             profile="openstack1",
         ))