예제 #1
0
 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'))
예제 #2
0
 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'))
예제 #3
0
 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"))
예제 #4
0
 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'))