コード例 #1
0
 def setUp(self):
     with warnings.catch_warnings(record=True):
         warnings.simplefilter("default")
         self.verifier = LocalVerifier()
コード例 #2
0
ファイル: test_verifiers.py プロジェクト: junkafarian/PyVEP
 def setUp(self):
     with warnings.catch_warnings(record=True) as w:
         warnings.simplefilter("always")
         self.verifier = LocalVerifier()
     # There should be a warning about using this verifier.
     self.assertEquals(w[0].category, FutureWarning)