def test_get_product_5(self): """Test #5: Test that the product is returned correctly for partitions, using the host disk data, when present.""" macos.PLIST = self.plist0s2 self.assertEqual(macos.get_product(disk="disk0s2"), "FakeDisk")
def test_get_product_2(self): """Test #2: Test that the product is returned correctly for host devices (roman chars).""" macos.PLIST = self.plist0 self.assertEqual(macos.get_product(disk="disk0"), "HARDDISK")
def test_get_product_3(self): """Test #3: Test that the product is returned correctly for host devices (non-roman chars).""" macos.PLIST = self.plist0nonroman self.assertEqual(macos.get_product(disk="disk0"), "ꍜꍧꍼꍟꍏꍄꌲꍏꌽꍛꍷꍼꍴ")
def test_get_product_1(self): """Test #1: Test that u"Unknown" is returned when product info is missing.""" macos.PLIST = self.badplist0 self.assertEqual(macos.get_product(disk="disk0"), "Unknown")