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