def test_ls_no_args(self): volumes = vmdk_utils.get_volumes(None) header = vmdkops_admin.all_ls_headers() rows = vmdkops_admin.generate_ls_rows(None) self.assertEqual(EXPECTED_COLUMN_COUNT, len(header)) self.assertEqual(len(volumes), len(rows)) for i in range(len(volumes)): self.assertEqual(volumes[i]['filename'], rows[i][0] + '.vmdk')
def test_ls_no_args(self): volumes = vmdk_utils.get_volumes() header = vmdkops_admin.all_ls_headers() rows = vmdkops_admin.generate_ls_rows() expected_column_count = 11 self.assertEqual(expected_column_count, len(header)) self.assertEqual(len(volumes), len(rows)) for i in range(len(volumes)): self.assertEqual(volumes[i]['filename'], rows[i][0] + '.vmdk')
def test_ls_no_args(self): volumes = vmdk_utils.get_volumes(None) header = vmdkops_admin.all_ls_headers() rows = vmdkops_admin.generate_ls_rows(None) expected_column_count = 11 self.assertEqual(expected_column_count, len(header)) self.assertEqual(len(volumes), len(rows)) for i in range(len(volumes)): self.assertEqual(volumes[i]['filename'], rows[i][0] + '.vmdk')