Show More
@@ -46,7 +46,7 b' class TestAnsi(TestsBase):' | |||
|
46 | 46 | |
|
47 | 47 | |
|
48 | 48 | def _try_strip_ansi(self, inval, outval): |
|
49 |
self.assert_equal |
|
|
49 | self.assert_equal(outval, strip_ansi(inval)) | |
|
50 | 50 | |
|
51 | 51 | |
|
52 | 52 | def test_ansi2html(self): |
@@ -44,7 +44,7 b' class TestLatex(TestsBase):' | |||
|
44 | 44 | """ |
|
45 | 45 | Try to remove latex from string |
|
46 | 46 | """ |
|
47 |
self.assert_equal |
|
|
47 | self.assert_equal(escape_latex(test), result) | |
|
48 | 48 | |
|
49 | 49 | |
|
50 | 50 | def test_strip_math_space(self): |
@@ -69,4 +69,4 b' class TestLatex(TestsBase):' | |||
|
69 | 69 | """ |
|
70 | 70 | Try to remove spaces between dollar symbols and contents correctly |
|
71 | 71 | """ |
|
72 |
self.assert_equal |
|
|
72 | self.assert_equal(strip_math_space(test), result) |
@@ -46,7 +46,7 b' class TestStrings(TestsBase):' | |||
|
46 | 46 | html2text test |
|
47 | 47 | """ |
|
48 | 48 | #TODO: More tests |
|
49 |
self.assert_equal |
|
|
49 | self.assert_equal(html2text('<name>joe</name>'), 'joe') | |
|
50 | 50 | |
|
51 | 51 | |
|
52 | 52 | def test_add_anchor(self): |
@@ -80,7 +80,7 b' class TestStrings(TestsBase):' | |||
|
80 | 80 | |
|
81 | 81 | |
|
82 | 82 | def _try_strip_dollars(self, test, result): |
|
83 |
self.assert_equal |
|
|
83 | self.assert_equal(strip_dollars(test), result) | |
|
84 | 84 | |
|
85 | 85 | |
|
86 | 86 | def test_strip_files_prefix(self): |
@@ -98,7 +98,7 b' class TestStrings(TestsBase):' | |||
|
98 | 98 | |
|
99 | 99 | |
|
100 | 100 | def _try_files_prefix(self, test, result): |
|
101 |
self.assert_equal |
|
|
101 | self.assert_equal(strip_files_prefix(test), result) | |
|
102 | 102 | |
|
103 | 103 | |
|
104 | 104 | def test_comment_lines(self): |
@@ -116,10 +116,10 b' class TestStrings(TestsBase):' | |||
|
116 | 116 | get_lines test |
|
117 | 117 | """ |
|
118 | 118 | text = "hello\nworld\n!" |
|
119 |
self.assert_equal |
|
|
120 |
self.assert_equal |
|
|
121 |
self.assert_equal |
|
|
122 |
self.assert_equal |
|
|
119 | self.assert_equal(get_lines(text, start=1), "world\n!") | |
|
120 | self.assert_equal(get_lines(text, end=2), "hello\nworld") | |
|
121 | self.assert_equal(get_lines(text, start=2, end=5), "!") | |
|
122 | self.assert_equal(get_lines(text, start=-2), "world\n!") | |
|
123 | 123 | |
|
124 | 124 | |
|
125 | 125 | def test_ipython2python(self): |
General Comments 0
You need to be logged in to leave comments.
Login now