Ejemplo n.º 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")
Ejemplo n.º 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. ")
Ejemplo n.º 3
0
 def test_between(self):
     Assert.between(7, 5, 10)