Exemplo n.º 1
0
def test_generateRandomKey():
    randomKey1 = StringUtils.generateRandomKey()
    randomKey2 = StringUtils.generateRandomKey()
    assert randomKey1 != randomKey2
    assert len(randomKey1) == len(randomKey2) == 20

    randomKey1 = StringUtils.generateRandomKey(40)
    randomKey2 = StringUtils.generateRandomKey(40)
    assert randomKey1 != randomKey2
    assert len(randomKey1) == len(randomKey2) == 40
Exemplo n.º 2
0
def test_generateRandomKey():
    randomKey1 = StringUtils.generateRandomKey()
    randomKey2 = StringUtils.generateRandomKey()
    assert randomKey1 != randomKey2
    assert len(randomKey1) == len(randomKey2) == 20

    randomKey1 = StringUtils.generateRandomKey(40)
    randomKey2 = StringUtils.generateRandomKey(40)
    assert randomKey1 != randomKey2
    assert len(randomKey1) == len(randomKey2) == 40