summaryrefslogtreecommitdiff
path: root/tests/test_multidict.py
diff options
context:
space:
mode:
authorChris Dent <chris.dent@gmail.com>2018-10-23 16:09:42 +0100
committerGitHub <noreply@github.com>2018-10-23 16:09:42 +0100
commit9a873a24759f69d6414042abdfc2fde21f8cca21 (patch)
tree953b5c70cc968b523e42e7bf0594b8ac49216b9d /tests/test_multidict.py
parent95efbbf0137de2f0e472ca12d60cfe242c01ec27 (diff)
parent0604a3a5fd1a64098cbdaf44bbb76b805c5233c0 (diff)
downloadpaste-git-9a873a24759f69d6414042abdfc2fde21f8cca21.tar.gz
Merge pull request #1 from cdent/pytest
Switch from nose to pytest
Diffstat (limited to 'tests/test_multidict.py')
-rw-r--r--tests/test_multidict.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/test_multidict.py b/tests/test_multidict.py
index 50a746f..a33c13b 100644
--- a/tests/test_multidict.py
+++ b/tests/test_multidict.py
@@ -2,11 +2,11 @@
# (c) 2007 Ian Bicking and Philip Jenvey; written for Paste (http://pythonpaste.org)
# Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php
import cgi
+
+import pytest
import six
from six.moves import StringIO
-from nose.tools import assert_raises
-
from paste.util.multidict import MultiDict, UnicodeMultiDict
def test_dict():
@@ -21,7 +21,7 @@ def test_dict():
assert d.items() == [('a', 1), ('c', 3), ('b', 4)]
d.add('b', 5)
- assert_raises(KeyError, d.getone, "b")
+ pytest.raises(KeyError, d.getone, "b")
assert d.getall('b') == [4, 5]
assert d.items() == [('a', 1), ('c', 3), ('b', 4), ('b', 5)]
@@ -94,7 +94,7 @@ def _test_unicode_dict(decode_param_names=False):
list(map(assert_unicode_item, d.items()))
d.add(k('b'), b'5 test')
- assert_raises(KeyError, d.getone, k("b"))
+ pytest.raises(KeyError, d.getone, k("b"))
assert d.getall(k('b')) == [u'4 test', u'5 test']
map(assert_unicode, d.getall('b'))
assert d.items() == [(k('a'), u'a test'), (k('c'), u'3 test'), (k('b'), u'4 test'),