diff options
author | Mike Crute <mcrute@gmail.com> | 2015-07-29 18:20:25 -0700 |
---|---|---|
committer | Mike Crute <mcrute@gmail.com> | 2015-07-29 18:20:25 -0700 |
commit | fc9f583987feb4a747b7bcf48f48154872b97abd (patch) | |
tree | 809b5b918010e519c44b3ba56510108ede3704d7 /milkman/tests/test_auth.py | |
download | milkman-master.tar.bz2 milkman-master.tar.xz milkman-master.zip |
Diffstat (limited to 'milkman/tests/test_auth.py')
-rw-r--r-- | milkman/tests/test_auth.py | 16 |
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 | """ | ||
3 | Authentication Test Suite | ||
4 | |||
5 | @author: Mike Crute (mcrute@ag.com) | ||
6 | @organization: American Greetings Interactive | ||
7 | @date: February 03, 2010 | ||
8 | """ | ||
9 | |||
10 | from milkman.auth import flatten_sorted_dict, md5_sign | ||
11 | |||
12 | |||
13 | def test_sort_dict(): | ||
14 | input = { 'alpha': '1', 'ahla': '2', 'beta': '3' } | ||
15 | output = flatten_sorted_dict(input) | ||
16 | assert output == 'ahla2alpha1beta3' | ||