From 6c8173d409b8e016d8cc788930579c80ed4a46c8 Mon Sep 17 00:00:00 2001 From: Andris Raugulis Date: Thu, 6 Apr 2017 05:27:40 +0300 Subject: [PATCH] Fix to_ntext test. --- test/test_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test_utils.py b/test/test_utils.py index 64cb07b..2a83bd8 100644 --- a/test/test_utils.py +++ b/test/test_utils.py @@ -78,7 +78,7 @@ class TestUtils(object): assert self.utils.to_ntext('fran\xc3\xa7ais') == 'fran\xc3\xa7ais' assert self.utils.to_ntext(u'fran\xe7ais') == 'fran\xe7ais' # binary_type (bytes) - assert self.utils.to_utext(b'fran\xc3\xa7ais') == 'fran\xe7ais' + assert self.utils.to_ntext(b'fran\xc3\xa7ais') == 'fran\xe7ais' # other with pytest.raises(TypeError): self.utils.to_ntext(123)