~divmod-dev/divmod.org/trunk

« back to all changes in this revision

Viewing changes to Epsilon/epsilon/test/test_unrepr.py

  • Committer: Jean-Paul Calderone
  • Date: 2014-06-29 20:33:04 UTC
  • mfrom: (2749.1.1 remove-epsilon-1325289)
  • Revision ID: exarkun@twistedmatrix.com-20140629203304-gdkmbwl1suei4m97
mergeĀ lp:~exarkun/divmod.org/remove-epsilon-1325289

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
from twisted.trial import unittest
2
 
from epsilon.unrepr import unrepr
3
 
class UnreprTestCase(unittest.TestCase):
4
 
 
5
 
    def testSimpleUnrepr(self):
6
 
        data = {'x': [u'bob', (1+2j), []], 10: (1, {}, 'two'), (3, 4): 5L}
7
 
        self.assertEquals(unrepr(repr(data)), data)