| Total Complexity | 4 |
| Total Lines | 14 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | |||
| 9 | class IPythonNotebookTestCase(unittest.TestCase): |
||
| 10 | def test_package_name(self): |
||
| 11 | |||
| 12 | fileobj = io.StringIO() |
||
| 13 | self.assertEqual(IPythonNotebook('notebook.ipynb', fileobj).name, 'notebook') |
||
| 14 | |||
| 15 | def test_package_name_unicode(self): |
||
| 16 | |||
| 17 | fileobj = io.StringIO() |
||
| 18 | self.assertEqual(IPythonNotebook(b'na\xcc\x83o.ipynb', fileobj).name, 'nao') |
||
| 19 | |||
| 20 | def test_version(self): |
||
| 21 | with open(data_dir('notebook.ipynb')) as fileobj: |
||
| 22 | self.assertIsInstance(IPythonNotebook('notebook.ipynb', fileobj).version, str) |
||
| 23 | |||
| 43 |