
import six

from openstack.tests.functional import base


class TestExtension(base.BaseFunctionalTest):

    def test_list_and_find(self):
        extensions = list(self.conn.network.extensions())
        self.assertGreater(len(extensions), 0)

        for ext in extensions:
            self.assertIsInstance(ext.name, six.string_types)
            self.assertIsInstance(ext.namespace, six.string_types)
            self.assertIsInstance(ext.alias, six.string_types)


import six

from openstack.tests.functional import base


class TestExtension(base.BaseFunctionalTest):

    def test_list_and_find(self):
        extensions = list(self.conn.network.extensions())
        self.assertGreater(len(extensions), 0)

        for ext in extensions:
            self.assertIsInstance(ext.name, six.string_types)
            self.assertIsInstance(ext.alias, six.string_types)

Remove namespace from network ext test
Remove namespace from network ext test

Change-Id: Id9b97d67ac6745fe962a76ccd9c0e4f7cbed4a89

  
  import six
  
  from openstack.tests.functional import base
  
  
  class TestExtension(base.BaseFunctionalTest):
  
      def test_list_and_find(self):
          extensions = list(self.conn.network.extensions())
          self.assertGreater(len(extensions), 0)
  
          for ext in extensions:
              self.assertIsInstance(ext.name, six.string_types)
-             self.assertIsInstance(ext.namespace, six.string_types)
              self.assertIsInstance(ext.alias, six.string_types)
  
Remove namespace from network ext test
## Code Before:

import six

from openstack.tests.functional import base


class TestExtension(base.BaseFunctionalTest):

    def test_list_and_find(self):
        extensions = list(self.conn.network.extensions())
        self.assertGreater(len(extensions), 0)

        for ext in extensions:
            self.assertIsInstance(ext.name, six.string_types)
            self.assertIsInstance(ext.namespace, six.string_types)
            self.assertIsInstance(ext.alias, six.string_types)

## Instruction:
Remove namespace from network ext test
## Code After:

import six

from openstack.tests.functional import base


class TestExtension(base.BaseFunctionalTest):

    def test_list_and_find(self):
        extensions = list(self.conn.network.extensions())
        self.assertGreater(len(extensions), 0)

        for ext in extensions:
            self.assertIsInstance(ext.name, six.string_types)
            self.assertIsInstance(ext.alias, six.string_types)
