Commits

Michael Hudson-Doyle  committed 47ee52c

add dictobject test

  • Participants
  • Parent commits f936b5f

Comments (0)

Files changed (1)

File pypy/objspace/std/test/test_dictobject.py

+import unittest, sys
+import testsupport
+from pypy.objspace.std import dictobject as dobj
+from pypy.objspace.std.objspace import *
+
+
+class TestW_DictObject(unittest.TestCase):
+
+    def setUp(self):
+        self.space = StdObjSpace()
+
+    def tearDown(self):
+        pass
+
+    def test_empty(self):
+        d = dobj.W_DictObject([])
+        self.failIf(self.space.is_true(d))
+
+if __name__ == '__main__':
+    unittest.main()