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.py49
1 files changed, 2 insertions, 47 deletions
diff --git a/tests/test_deprecated.py b/tests/test_deprecated.py
index 32e2fbd..8d4fc7e 100644
--- a/tests/test_deprecated.py
+++ b/tests/test_deprecated.py
@@ -1,55 +1,10 @@
#!/usr/bin/env python
-# Copyright (c) 2013 Yu-Jie Lin
+# Copyright (c) 2013, 2016 Yu-Jie Lin
# Licensed under the BSD License, for detailed license information, see COPYING
import unittest
-import warnings
-
-import smartypants as sps
-from smartypants import smartypants as sp
-from smartypants import smartyPants as sP
-from smartypants import Attr
class SmartyPantsDeprecatedTestCase(unittest.TestCase):
- def test_str_attr(self):
-
- TEXT = '"foo" -- bar'
-
- with warnings.catch_warnings(record=True) as w:
-
- T = sp(TEXT, 'q')
- E = '“foo” -- bar'
- self.assertEquals(T, E)
-
- T = sp(TEXT, 'qd')
- E = '“foo” — bar'
- self.assertEquals(T, E)
-
- # should only get warning 'once'
- self.assertEquals(len(w), 1)
-
- def test_smartyPants(self):
-
- TEXT = '"foo" -- bar'
-
- with warnings.catch_warnings(record=True) as w:
-
- T = sP(TEXT, Attr.q)
- E = '“foo” -- bar'
- 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)
+ pass