コード例 #1
0
ファイル: tests.py プロジェクト: Craiting/shapes_HW1
 def test_ellipse_circle_area(self):
     ellipse = Ellipse('circle',12,12)
     self.assertEqual(round(ellipse.get_area(),1), 113.1)
コード例 #2
0
ファイル: tests.py プロジェクト: Craiting/shapes_HW1
 def test_ellipse_noncircle_area(self):
     ellipse = Ellipse('non-circle',12,4)
     self.assertEqual(round(ellipse.get_area(),1), 37.7)