Exemplo n.º 1
0
 def test_is_positive_failed_list(self):
     soft = SoftAssert()
     soft.is_positive([])
     with self.assertRaises(AssertionError):
         soft.assert_all()
Exemplo n.º 2
0
 def test_is_positive_ok_float(self):
     soft = SoftAssert()
     soft.is_positive(3.14)
     soft.assert_all()
Exemplo n.º 3
0
 def test_is_positive_ok_list(self):
     soft = SoftAssert()
     soft.is_positive([1, 2])
     soft.assert_all()
Exemplo n.º 4
0
 def test_is_positive_ok_int(self):
     soft = SoftAssert()
     soft.is_positive(1)
     soft.assert_all()