Skip to content

Commit 3a09d8c

Browse files
Fix TestBaseTestCase assertions
1 parent 54aada1 commit 3a09d8c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/test_base_test_case.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,11 @@ def test_assertAlmostEqualWithinPercentage(self):
1313

1414
with self.assertRaises(AssertionError):
1515
self.assertAlmostEqualWithinPercentage(100, 0, percent=5)
16+
17+
with self.assertRaises(AssertionError):
1618
self.assertAlmostEqualWithinPercentage(100, 94.5, percent=5)
19+
20+
with self.assertRaises(AssertionError):
1721
self.assertAlmostEqualWithinPercentage(100, 105.5, percent=5)
1822

1923
self.assertListAlmostEqual([1, 2, 3], [1.1, 2.2, 3.3], percent=10.5)

0 commit comments

Comments
 (0)