+ # This test only works is the roman module is installed
+ if compat.roman is not None:
+ self.assertEquals(compat.TryToRoman(0), 0)
+ self.assertEquals(compat.TryToRoman(1), "I")
+ self.assertEquals(compat.TryToRoman(4), "IV")
+ self.assertEquals(compat.TryToRoman(5), "V")
+
+ def testWithNoRoman(self):
+ # compat.roman is saved/restored in setUp/tearDown
+ compat.roman = None