Exemplo n.º 1
0
 def test_is_empty_ok_dict(self):
     soft = SoftAssert()
     soft.is_empty({})
     soft.assert_all()
Exemplo n.º 2
0
 def test_is_empty_failed(self):
     soft = SoftAssert()
     soft.is_empty((1, 2))
     with self.assertRaises(AssertionError):
         soft.assert_all()
Exemplo n.º 3
0
 def test_is_empty_ok_list(self):
     soft = SoftAssert()
     soft.is_empty([])
     soft.assert_all()