diff options
| author | Sergey Schetinin <sergey@maluke.com> | 2011-06-30 17:30:27 +0300 |
|---|---|---|
| committer | Sergey Schetinin <sergey@maluke.com> | 2011-06-30 17:30:27 +0300 |
| commit | 070a77c525720a930b3be831bb6b72af9068ea5d (patch) | |
| tree | 4bc0c9af0d616ac6ebe542c73a2755be7e70dd80 /tests/test_acceptparse.py | |
| parent | 08c331860b03153685473b7b8af089797382498c (diff) | |
| download | webob-070a77c525720a930b3be831bb6b72af9068ea5d.tar.gz | |
refactor some special-method tests, drop some
Diffstat (limited to 'tests/test_acceptparse.py')
| -rw-r--r-- | tests/test_acceptparse.py | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/tests/test_acceptparse.py b/tests/test_acceptparse.py index ad7d0d2..468a22b 100644 --- a/tests/test_acceptparse.py +++ b/tests/test_acceptparse.py @@ -245,9 +245,7 @@ def test_nil_radd_masterclass(): def test_nil_contains(): nilaccept = NilAccept('Connection-Close') - # NilAccept.__contains__ always returns True - assert '' in nilaccept - assert 'dummy' in nilaccept + assert 'anything' in nilaccept def test_nil_first_match(): nilaccept = NilAccept('Connection-Close') @@ -270,9 +268,7 @@ def test_nil_best_match(): # NoAccept tests def test_noaccept_contains(): - noaccept = NoAccept('Connection-Close') - # NoAccept.__contains__ always returns False - assert 'text/plain' not in noaccept + assert 'text/plain' not in NoAccept('Connection-Close') # MIMEAccept tests |
