aboutsummaryrefslogtreecommitdiff
path: root/tests/test_alphanum.py
diff options
context:
space:
mode:
authorCody Logan <clpo13@gmail.com>2020-01-07 16:28:01 -0800
committerCody Logan <clpo13@gmail.com>2020-01-07 16:28:01 -0800
commitc77d4fc27a7235f206e2ae771c47a57d6cc18df4 (patch)
treea113121533acd7cd0697760f1282a3df4f232be6 /tests/test_alphanum.py
downloadalphanum-c77d4fc27a7235f206e2ae771c47a57d6cc18df4.tar.gz
alphanum-c77d4fc27a7235f206e2ae771c47a57d6cc18df4.zip
Initial commitv0.1.0
Diffstat (limited to 'tests/test_alphanum.py')
-rw-r--r--tests/test_alphanum.py17
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/test_alphanum.py b/tests/test_alphanum.py
new file mode 100644
index 0000000..fc9bc41
--- /dev/null
+++ b/tests/test_alphanum.py
@@ -0,0 +1,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