Exemple #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")
     )
Exemple #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'))
Exemple #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'))
Exemple #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",
         ))