summaryrefslogtreecommitdiff
path: root/tests/test_deprecated.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_deprecated.py')
-rw-r--r--tests/test_deprecated.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/test_deprecated.py b/tests/test_deprecated.py
index 1990f1f..35c04d8 100644
--- a/tests/test_deprecated.py
+++ b/tests/test_deprecated.py
@@ -5,6 +5,7 @@
import unittest
import warnings
+import smartypants as sps
from smartypants import Attr, smartypants as sp, smartyPants as sP
@@ -38,3 +39,15 @@ class SmartyPantsDeprecatedTestCase(unittest.TestCase):
self.assertEquals(T, E)
self.assertEquals(len(w), 1)
+
+ def test_educateQuotes(self):
+
+ TEXT = '"foo" -- bar'
+
+ with warnings.catch_warnings(record=True) as w:
+
+ T = sps.educateQuotes(TEXT)
+ E = '“foo” -- bar'
+ self.assertEquals(T, E)
+
+ self.assertEquals(len(w), 1)