Commits

Kyle VanderBeek  committed 1eb8896

The new test suite for converters should actually *work*.

  • Participants
  • Parent commits 8332262

Comments (0)

Files changed (2)

File beaker/container.py

 import anydbm
 import cPickle
 import logging
-import os.path
+import os
 import time
 
 import beaker.util as util

File tests/test_converters.py

 class AsList(unittest.TestCase):
     def test_string(self):
         self.assertEqual(aslist('abc'), ['abc'])
-        self.assertEqual(aslist('1a2a3'), [1, 2, 3])
+        self.assertEqual(aslist('1a2a3', 'a'), ['1', '2', '3'])
 
     def test_None(self):
         self.assertEqual(aslist(None), [])
 
     def test_listify(self):
         """Other objects should just result in a single item list."""
-        self.assertEqual(aslist(dict()), {})
+        self.assertEqual(aslist(dict()), [{}])
 
 
 if __name__ == '__main__':