Esempio n. 1
0
    def test_it_should_assert_greater_than_or_equal_to_for_invalid_arguments(
            self):
        try:
            assertions.assertGreaterThanOrEqualTo(2, 1)

            self.fail("did not identify that 2 > 1")
        except assertions.AssertionFailedError, e:
            self.assertEqual('expected 1 to be greater than or equal to 2',
                             e.message)
Esempio n. 2
0
 def test_it_should_assert_greater_than_for_equal_arguments(self):
     self.assertEqual(True, assertions.assertGreaterThanOrEqualTo(1, 1),
                      "did not identify that 1 >= 1")