def random_uuid_as_string(): '''Creates a random uuid and returns is as a string''' return randomness.generate_random_uuid_as_str()
def test_generate_random_uuid(): """Not sure if there's a better test than a string of normal uuid length (36)""" uuid = randomness.generate_random_uuid_as_str() assert len(uuid) == 36 assert isinstance(uuid, basestring)
def test_generate_random_uuid(): # Not sure if there's a better test than a string of normal uuid length (36) uuid = randomness.generate_random_uuid_as_str() Assert.equal(len(uuid), 36) Assert.true(isinstance(uuid, basestring))