summaryrefslogtreecommitdiff
path: root/tests/test_grantip.py
diff options
context:
space:
mode:
authorpjenvey <devnull@localhost>2008-03-10 23:08:45 +0000
committerpjenvey <devnull@localhost>2008-03-10 23:08:45 +0000
commitf07ed5f3ba04e6042949e4219d52e25b83a99256 (patch)
tree130212a66735b005f55b075493fa61ec87d27e99 /tests/test_grantip.py
parent76be018175929b69da33992804c86c4f5495abf1 (diff)
downloadpaste-f07ed5f3ba04e6042949e4219d52e25b83a99256.tar.gz
don't assume dict ordering
Diffstat (limited to 'tests/test_grantip.py')
-rw-r--r--tests/test_grantip.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/test_grantip.py b/tests/test_grantip.py
index ffb9cfb..8d74280 100644
--- a/tests/test_grantip.py
+++ b/tests/test_grantip.py
@@ -27,5 +27,8 @@ def test_req():
assert doit('127.0.0.1') == 'None:system'
assert doit('192.168.15.12') == 'None:worker'
assert doit('192.168.0.4') == 'None:worker'
- assert doit('192.168.0.5') == 'bob:editor,worker'
+ result = doit('192.168.0.5')
+ assert result.startswith('bob:')
+ assert 'editor' in result and 'worker' in result
+ assert result.count(',') == 1
assert doit('192.168.0.8') == 'None:editor'