示例#1
0
def random_uuid_as_string():
    '''Creates a random uuid and returns is as a string'''
    return randomness.generate_random_uuid_as_str()
示例#2
0
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)
示例#3
0
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))
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)