예제 #1
0
 def test_between_failure_with_message(self):
     try:
         Assert.between(11, 5, 10, msg='failure message')
     except AssertionError as e:
         Assert.equal(e.msg, "11 is not between 5 and 10. failure message")
예제 #2
0
 def test_between_failure_without_message(self):
     try:
         Assert.between('along', 'alone', 'allow')
     except AssertionError as e:
         Assert.equal(e.msg, "along is not between alone and allow. ")
예제 #3
0
 def test_between(self):
     Assert.between(7, 5, 10)