Пример #1
0
    def test_it_should_assert_false_for_invalid_arguments(self):
        try:
            assertions.assertFalse(True)

            self.fail("did not identify that True is not False")
        except assertions.AssertionFailedError, e:
            self.assertEqual('expected True to be False', e.message)
Пример #2
0
 def test_it_should_assert_false_for_valid_arguments(self):
     self.assertEqual(True, assertions.assertFalse(False),
                      'did not identify that False is False')
Пример #3
0
 def test_it_should_assert_false(self):
     try:
         assertions.assertFalse(False)
     except assertions.AssertionFailedError, e:
         self.fail("did not identify that False was False")