class GreaterThanEqualMatcherTest(unittest.TestCase): def setUp(self): self.matcher = GreaterThanEqualMatcher(7) def test_should_return_false_when_matching_value_less_than_expected(self): self.assertFalse(self.matcher.matches(6)) def test_should_return_true_when_matching_value_equal_than_expected(self): self.assertTrue(self.matcher.matches(7)) def test_should_return_true_when_matching_value_greater_than_expected(self): self.assertTrue(self.matcher.matches(8)) def test_should_provide_description(self): self.assertEquals("Actual '6' is not greater than or equal to '7'", self.matcher.describe(6))
class GreaterThanEqualMatcherTest(unittest.TestCase): def setUp(self): self.matcher = GreaterThanEqualMatcher(7) def test_should_return_false_when_matching_value_less_than_expected(self): self.assertFalse(self.matcher.matches(6)) def test_should_return_true_when_matching_value_equal_than_expected(self): self.assertTrue(self.matcher.matches(7)) def test_should_return_true_when_matching_value_greater_than_expected( self): self.assertTrue(self.matcher.matches(8)) def test_should_provide_description(self): self.assertEquals("Actual '6' is not greater than or equal to '7'", self.matcher.describe(6))
def setUp(self): self.matcher = GreaterThanEqualMatcher(7)