aboutsummaryrefslogtreecommitdiff
path: root/tests/test_alphanum.py
blob: fc9bc411a447b6379dc37c8dd0b4519d732d28fa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import alphanum


def test_no_string_length():
    foo = alphanum.generate()
    assert len(foo) == 1


def test_with_string_length():
    foo = alphanum.generate(10)
    assert len(foo) == 10


def test_subsequent_strings_differ():
    foo = alphanum.generate(10)
    bar = alphanum.generate(10)
    assert foo != bar