diff options
author | pjenvey <devnull@localhost> | 2008-03-10 23:08:45 +0000 |
---|---|---|
committer | pjenvey <devnull@localhost> | 2008-03-10 23:08:45 +0000 |
commit | f07ed5f3ba04e6042949e4219d52e25b83a99256 (patch) | |
tree | 130212a66735b005f55b075493fa61ec87d27e99 /tests/test_grantip.py | |
parent | 76be018175929b69da33992804c86c4f5495abf1 (diff) | |
download | paste-f07ed5f3ba04e6042949e4219d52e25b83a99256.tar.gz |
don't assume dict ordering
Diffstat (limited to 'tests/test_grantip.py')
-rw-r--r-- | tests/test_grantip.py | 5 |
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' |