コード例 #1
0
ファイル: test_assertions.py プロジェクト: jimr/testy
 def test_assert_within_tolerance(self):
     assert_within_tolerance(5, 5.1, 0.2)
コード例 #2
0
ファイル: test_assertions.py プロジェクト: jimr/testy
 def test_assert_within_tolerance(self):
     with assert_raises(AssertionError):
         assert_within_tolerance(5, 5.1, 0.01)