Ejemplo n.º 1
0
 def test_warn_deprecated(self):
     with override_stdouts() as (stdout, _):
         __main__._warn_deprecated('YADDA YADDA')
         self.assertIn('command is deprecated', stdout.getvalue())
         self.assertIn('YADDA YADDA', stdout.getvalue())
Ejemplo n.º 2
0
 def test_warn_deprecated(self):
     with override_stdouts() as (stdout, _):
         __main__._warn_deprecated('YADDA YADDA')
         self.assertIn('command is deprecated', stdout.getvalue())
         self.assertIn('YADDA YADDA', stdout.getvalue())