test_json.py 219 B

1234567891011121314
  1. from unittest import TestCase
  2. from ..nbjson import reads, writes
  3. from .nbexamples import nb0
  4. class TestJSON(TestCase):
  5. def test_roundtrip(self):
  6. s = writes(nb0)
  7. self.assertEqual(reads(s),nb0)