def assertInputOutput(self, directory, ls_pipe, expected, width=40): tree = duviz._build_inode_count_tree(directory, ls_pipe, progress=None) result = tree.block_display(width=width, size_renderer=duviz.human_readable_count) self.assertEqual(expected.split('\n'), result.split('\n'))
def assertInputOuput(self, directory, ls_pipe, expected, width=40): tree = duviz._build_inode_count_tree(directory, ls_pipe, progress=None) result = tree.block_display(width=width, size_renderer=duviz.human_readable_count) self.assertEqual(expected.split('\n'), result.split('\n'))
def assertInputOuput(self, directory, ls_str, expected, width=40): ls_pipe = StringIO.StringIO(ls_str) tree = duviz._build_inode_count_tree(directory, ls_pipe, feedback=None) result = tree.block_display(width=width, size_renderer=duviz.human_readable_count) self.assertEqual(expected.split("\n"), result.split("\n"))
def assertInputOuput(self, directory, ls_str, expected, width=40): ls_pipe = StringIO(ls_str) tree = duviz._build_inode_count_tree(directory, ls_pipe, feedback=None) result = tree.block_display(width=width, size_renderer=duviz.human_readable_count) self.assertEqual(expected.split('\n'), result.split('\n'))