'Test uses administrative credentials to create a default subnetpool,
using the is_default=True.
Then it will update "is_default" attribute to False.'

@decorators.idempotent_id('39687561-7a37-47b8-91ce-f9143ae26969')
@test.requires_ext(extension='default-subnetpools', service='network')
def test_convert_default_subnetpool_to_non_default(self):

    created_subnetpool = self._create_subnetpool(is_admin=True, is_default=True)
    subnetpool_id = created_subnetpool['id']
    self.assertTrue(created_subnetpool['is_default'])
    subnetpool_data = {'is_default': False}
    self.admin_client.update_subnetpool(subnetpool_id, **subnetpool_data)
    show_body = self.client.show_subnetpool(subnetpool_id)
    self.assertFalse(show_body['subnetpool']['is_default'])
