示例#1
0
 def test_create_subnet(self, mock):
     """
     Test if it creates a new subnet
     """
     self.assertTrue(
         neutron.create_subnet("192.168.1.0", "192.168.1.0/24", name="Salt", ip_version=4, profile="openstack1")
     )
示例#2
0
 def test_create_subnet(self, mock):
     '''
     Test if it creates a new subnet
     '''
     self.assertTrue(neutron.create_subnet('192.168.1.0',
                                           '192.168.1.0/24',
                                           name='Salt',
                                           ip_version=4,
                                           profile='openstack1'))
示例#3
0
 def test_create_subnet(self, mock):
     '''
     Test if it creates a new subnet
     '''
     self.assertTrue(
         neutron.create_subnet('192.168.1.0',
                               '192.168.1.0/24',
                               name='Salt',
                               ip_version=4,
                               profile='openstack1'))
示例#4
0
 def test_create_subnet(self):
     """
     Test if it creates a new subnet
     """
     self.assertTrue(
         neutron.create_subnet(
             "192.168.1.0",
             "192.168.1.0/24",
             name="Salt",
             ip_version=4,
             profile="openstack1",
         ))