目の前に僕らの道がある

勉強会とか、技術的にはまったことのメモ

2009-03-13から1日間の記事一覧

テスト駆動開発入門をPythonで写経してみた。 1

こうですか?よく分かりません。 第1章 #coding : utf-8 """ テスト駆動開発入門1章 """ import unittest class TestMoney(unittest.TestCase): def testMultiplication(self): five = Dollar(5) five.times(2) self.assertEqual(10, five.amount) class Doll…

テスト駆動開発入門をPythonで写経してみた。 3

第3章 #coding : utf-8 """ テスト駆動開発入門3章 """ 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) sel…

テスト駆動開発入門をPythonで写経してみた。 2

第2章 #coding : utf-8 """ テスト駆動開発入門2章 """ 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) sel…