Show More
@@ -27,6 +27,10 b' def test_evens():' | |||||
27 | yield test_conversion, conv,root+'.ipynb',root+'.'+ext |
|
27 | yield test_conversion, conv,root+'.ipynb',root+'.'+ext | |
28 |
|
28 | |||
29 | @nottest |
|
29 | @nottest | |
|
30 | def compfiles(stra, strb): | |||
|
31 | nt.assert_equal(map(unicode.strip,stra.split('\n')),map(unicode.strip,strb.split('\n'))) | |||
|
32 | ||||
|
33 | @nottest | |||
30 | def test_conversion(ConverterClass, ipynb, ref_file): |
|
34 | def test_conversion(ConverterClass, ipynb, ref_file): | |
31 |
|
35 | |||
32 | converter = ConverterClass(ipynb) |
|
36 | converter = ConverterClass(ipynb) | |
@@ -34,6 +38,6 b' def test_conversion(ConverterClass, ipynb, ref_file):' | |||||
34 | cv =converter.convert() |
|
38 | cv =converter.convert() | |
35 | with io.open(ref_file) as ref: |
|
39 | with io.open(ref_file) as ref: | |
36 | value = ref.read() |
|
40 | value = ref.read() | |
37 | nt.assert_equal(cv.split('\n'),value.split('\n')) |
|
41 | compfiles(cv,value) | |
38 |
|
42 | |||
39 |
|
43 |
General Comments 0
You need to be logged in to leave comments.
Login now