def test_print_data_about_all_disks_info(self): d = DiskApp() d.information_level_info() d.print_data_about_all_disks() result = sys.stdout.getvalue().strip() self.assertRegexpMatches(result, '(name)(.*)')
def test_disks_count(self): d = DiskApp() self.assertGreater(d.disks_count(), 0, "No disks found.")