Пример #1
0
 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)(.*)')
Пример #2
0
 def test_disks_count(self):
     d = DiskApp()
     self.assertGreater(d.disks_count(), 0, "No disks found.")