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

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