def test_generate_uuid_format(self):
        uuid = utils.generate_uuid()
        self.assertTrue(isinstance(uuid, basestring))
        self.assertTrue(len(uuid), 36)
        # make sure there are 4 dashes
        self.assertTrue(len(uuid.replace('-', '')), 36)
Check the format of a uuid
dataset/ETHPy150Open rcbops/glance-buildpackage/glance/tests/unit/test_utils.py/TestUtils.test_generate_uuid_format