def test_multipath(self): client_output = sorted(self.client.du(['/', '/dir1']), key=lambda node: node['path']) expected_output = sorted(self.cluster.du(['/', '/dir1']), key=lambda node: node['path']) assertDu(expected_output, client_output, self.assertEqual, self.assertEqual)
def test_toplevel(self): client_output = sorted(self.client.du(['/'], include_toplevel=True, include_children=False), key=lambda node: node['path']) expected_output = sorted(self.cluster.du(['/'], ['-s']), key=lambda node: node['path']) self.assertEqual(len(client_output), 1) assertDu(expected_output, client_output, self.assertEqual, self.assertEqual)