Esempio 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())
Esempio 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())