diff options
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' | ||