##// END OF EJS Templates
a nicer error message when using %pylab magic...
a nicer error message when using %pylab magic If the user specified an unsupported backend, there was no indication for what the valid names were. Error message prior to this commit: In[1]: %pylab xxx ERROR: Backend u'xxx' not supported. after this commit: In[1]: %pylab xxx ERROR: Backend 'xxx' not supported. Supported backends are: gtk inline osx qt qt4 tk wx

File last commit:

r7874:4a6836ce
r11295:cb27e730
Show More
test_json.py
14 lines | 219 B | text/x-python | PythonLexer
from unittest import TestCase
from ..nbjson import reads, writes
from .nbexamples import nb0
class TestJSON(TestCase):
def test_roundtrip(self):
s = writes(nb0)
self.assertEqual(reads(s),nb0)