コード例 #1
0
ファイル: assertions.py プロジェクト: farikonsec/veripy
    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)
コード例 #2
0
ファイル: assertions.py プロジェクト: farikonsec/veripy
 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')
コード例 #3
0
ファイル: assertions.py プロジェクト: farikonsec/veripy
 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")