{"url":"https://masasuzu.hatenablog.jp/entry/20090313/1247889942","provider_url":"https://hatena.blog","categories":["programing","python","TDD"],"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmasasuzu.hatenablog.jp%2Fentry%2F20090313%2F1247889942\" title=\"\u30c6\u30b9\u30c8\u99c6\u52d5\u958b\u767a\u5165\u9580\u3092Python\u3067\u5199\u7d4c\u3057\u3066\u307f\u305f\u3002 3 - \u76ee\u306e\u524d\u306b\u50d5\u3089\u306e\u9053\u304c\u3042\u308b\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","author_name":"masasuz","description":"\u7b2c3\u7ae0 #coding : utf-8 \"\"\" \u30c6\u30b9\u30c8\u99c6\u52d5\u958b\u767a\u5165\u95803\u7ae0 \"\"\" import unittest class TestMoney(unittest.TestCase): def testMultiplication(self): five = Dollar(5) product = five.times(2) self.assertEqual(10, product.amount) product = five.times(3) self.assertEqual(15, product.amount) def testEuality(self): self.assert_(Dol\u2026","provider_name":"Hatena Blog","version":"1.0","title":"\u30c6\u30b9\u30c8\u99c6\u52d5\u958b\u767a\u5165\u9580\u3092Python\u3067\u5199\u7d4c\u3057\u3066\u307f\u305f\u3002 3","image_url":"http://ecx.images-amazon.com/images/I/51G6YEDVRKL.jpg","width":"100%","published":"2009-03-13 13:05:42","type":"rich","height":"190","blog_title":"\u76ee\u306e\u524d\u306b\u50d5\u3089\u306e\u9053\u304c\u3042\u308b","blog_url":"https://masasuzu.hatenablog.jp/","author_url":"https://blog.hatena.ne.jp/masasuz/"}