You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
325 B
14 lines
325 B
13 years ago
|
from unittest import TestCase
|
||
|
from cStringIO import StringIO
|
||
|
|
||
|
from pyutil import jsonutil as json
|
||
|
|
||
|
class TestDump(TestCase):
|
||
|
def test_dump(self):
|
||
|
sio = StringIO()
|
||
|
json.dump({}, sio)
|
||
|
self.assertEquals(sio.getvalue(), '{}')
|
||
|
|
||
|
def test_dumps(self):
|
||
|
self.assertEquals(json.dumps({}), '{}')
|