Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorBenjamin Saller <bcsaller@objectrealms.net>2007-05-25 00:01:15 (GMT)
committer Benjamin Saller <bcsaller@objectrealms.net>2007-05-25 00:01:15 (GMT)
commit06940953a0680b41acb4db749315904261be0b81 (patch)
treee8a0aa2e478e4aed17506060912b4a10bbeab1cc /tests
parent21d10f9aa2a766ee4e838dbe20603cb9ebf760a6 (diff)
trying to correct some bad initial handling of the datastreams
Diffstat (limited to 'tests')
-rw-r--r--tests/test_conversion.py18
1 files changed, 1 insertions, 17 deletions
diff --git a/tests/test_conversion.py b/tests/test_conversion.py
index e3fe0e7..1b4b773 100644
--- a/tests/test_conversion.py
+++ b/tests/test_conversion.py
@@ -1,26 +1,10 @@
import unittest
-from olpc.datastore.converter import Purify, converter
+from olpc.datastore.converter import converter
from StringIO import StringIO
class Test(unittest.TestCase):
- def setUp(self):
- self.file = StringIO(u"Don't\xa0peek.\n\n\x0c")
-
- def test_stripper_read(self):
- s = Purify(self.file)
- d = s.read()
- assert '\xa0' not in d
-
- def test_stripper_iter(self):
- s = Purify(self.file)
- # make sure we can iter it
- for line in s:
- # and that we are getting string
- # (not unicode) back
- assert isinstance(line, str)
-
def test_unicode(self):
# read each of the test files in doing conversion,
# there should be no unicode errors