def test_get_product_4(self): """Test #4: Test that products are returned correctly when they have non-roman chars (byte strings).""" self.assertEqual(linux.get_product(node=self.bytenode3), "𐅛𐅣𐅸𐅒𐅌𐅮𐅺𐅷𐅑𐅮𐆀𐅸𝈢𝈵𝈭") self.assertEqual(linux.get_product(node=self.bytenode4), "ꍜꍧꍼꍟꍏꍄꌲꍏꌽꍛꍷꍼꍴ")
def test_get_product_5(self): """Test #5: Test that u"Unknown" is returned when product string is missing.""" self.assertEqual(linux.get_product(node=self.badnode1), "Unknown")
def test_get_product_2(self): """Test #2: Test that products are returned correctly when they are present (byte strings).""" self.assertEqual(linux.get_product(node=self.bytenode1), "FakeProduct") self.assertEqual(linux.get_product(node=self.bytenode2), "FakeProduct2")