def test_random_uuid2(self): self.assertEqual(len(random_uuid(uuid_length=36)), 36)
def test_random_uuid(self): self.assertEqual(len(random_uuid()), UUID_LENGTH) self.assertEqual(len(random_uuid(5)), 5) self.assertEqual(random_uuid(9)[-1], '-')