def test_it_should_assert_not_none_for_invalid_arguments(self): try: assertions.assertNotNone(None) self.fail("did not identify that None is None") except assertions.AssertionFailedError, e: self.assertEqual('expected None to not be None', e.message)
def test_it_should_assert_not_none_for_valid_arguments(self): self.assertEqual(True, assertions.assertNotNone(True), 'did not identify that True is not None')
def test_it_should_assert_not_none(self): try: assertions.assertNotNone(True) except assertions.AssertionFailedError, e: self.fail("did not identify that True was not None")