

def test_basic(self):
    m = archive_policy.ArchivePolicy()
    self.assertIsNone(m.resource_key)
    self.assertIsNone(m.resources_key)
    self.assertEqual('/archive_policy', m.base_path)
    self.assertEqual('metric', m.service.service_type)
    self.assertTrue(m.allow_create)
    self.assertTrue(m.allow_retrieve)
    self.assertFalse(m.allow_update)
    self.assertTrue(m.allow_delete)
    self.assertTrue(m.allow_list)

dataset/ETHPy150Open openstack/python-openstacksdk/openstack/tests/unit/metric/v1/test_archive_policy.py TestArchivePolicy.test_basic/original