File: test_json.py

package info (click to toggle)
ipython 0.13.1-2%2Bdeb7u1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 15,752 kB
  • sloc: python: 69,537; makefile: 355; lisp: 272; sh: 80; objc: 37
file content (14 lines) | stat: -rw-r--r-- 220 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
from unittest import TestCase

from ..nbjson import reads, writes
from .nbexamples import nb0


class TestJSON(TestCase):

    def test_roundtrip(self):
        s = writes(nb0)
        self.assertEquals(reads(s),nb0)