示例#1
0
 def test_is_not_empty_ok_dict(self):
     soft = SoftAssert()
     soft.is_not_empty({1: 1})
     soft.assert_all()
示例#2
0
 def test_is_not_empty_failed(self):
     soft = SoftAssert()
     soft.is_not_empty(set())
     with self.assertRaises(AssertionError):
         soft.assert_all()
示例#3
0
 def test_is_not_empty_ok_list(self):
     soft = SoftAssert()
     soft.is_not_empty([1, 2])
     soft.assert_all()