Пример #1
0
 def testPriceConversionToPoundsAndPenceWithEmptyPrice(self):
     g = Gift(price=None)
     self.assertEquals(None, g.price_in_pounds())
Пример #2
0
 def testPriceConversionToPoundsAndPence(self):
     g = Gift(price=2499)
     self.assertEquals("£24.99", g.price_in_pounds())
Пример #3
0
 def testPriceConversionToPoundsAndPenceWithSubOnePound(self):
     g = Gift(price=99)
     self.assertEquals("£0.99", g.price_in_pounds())