Exemple #1
0
 def test_contains_failed(self):
     soft = SoftAssert()
     soft.contains(2, [1, 0])
     with self.assertRaises(AssertionError):
         soft.assert_all()
Exemple #2
0
 def test_contains_ok(self):
     soft = SoftAssert()
     soft.contains(1, [1, 2])
     soft.assert_all()