##// END OF EJS Templates
fixed bug in test and in support for passing alternative formatters
Greg Caporaso -
Show More
@@ -129,6 +129,7 b' class FileLinks(FileLink):'
129 129
130 130 See the FileLink (baseclass of LocalDirectory) docstring for
131 131 information on additional parameters.
132
132 133 """
133 134 self.included_suffixes = included_suffixes
134 135
@@ -139,9 +140,9 b' class FileLinks(FileLink):'
139 140 result_html_suffix)
140 141
141 142 self.notebook_display_formatter = \
142 self._get_notebook_display_formatter()
143 notebook_display_formatter or self._get_notebook_display_formatter()
143 144 self.terminal_display_formatter = \
144 self._get_terminal_display_formatter()
145 terminal_display_formatter or self._get_terminal_display_formatter()
145 146
146 147 def _get_display_formatter(self,
147 148 dirname_output_format,
@@ -93,7 +93,7 b' def test_existing_path_FileLinks_repr():'
93 93 actual = repr(fl)
94 94 actual = actual.split('\n')
95 95 actual.sort()
96 expected = [td, ' %s' % tf1.name,' %s' % tf2.name]
96 expected = [td, ' %s' % split(tf1.name)[1],' %s' % split(tf2.name)[1]]
97 97 expected.sort()
98 98 # We compare the sorted list of links here as that's more reliable
99 99 nt.assert_equal(actual,expected)
General Comments 0
You need to be logged in to leave comments. Login now