summaryrefslogtreecommitdiff
path: root/milkman/tests/test_auth.py
diff options
context:
space:
mode:
authorMike Crute <mcrute@gmail.com>2015-07-29 18:20:25 -0700
committerMike Crute <mcrute@gmail.com>2015-07-29 18:20:25 -0700
commitfc9f583987feb4a747b7bcf48f48154872b97abd (patch)
tree809b5b918010e519c44b3ba56510108ede3704d7 /milkman/tests/test_auth.py
downloadmilkman-master.tar.bz2
milkman-master.tar.xz
milkman-master.zip
Final commit before moving to git.HEADmaster
Diffstat (limited to 'milkman/tests/test_auth.py')
-rw-r--r--milkman/tests/test_auth.py16
1 files changed, 16 insertions, 0 deletions
diff --git a/milkman/tests/test_auth.py b/milkman/tests/test_auth.py
new file mode 100644
index 0000000..8a4e7d2
--- /dev/null
+++ b/milkman/tests/test_auth.py
@@ -0,0 +1,16 @@
1# vim: set filencoding=utf8
2"""
3Authentication Test Suite
4
5@author: Mike Crute (mcrute@ag.com)
6@organization: American Greetings Interactive
7@date: February 03, 2010
8"""
9
10from milkman.auth import flatten_sorted_dict, md5_sign
11
12
13def test_sort_dict():
14 input = { 'alpha': '1', 'ahla': '2', 'beta': '3' }
15 output = flatten_sorted_dict(input)
16 assert output == 'ahla2alpha1beta3'