Пример #1
0
 def test_main(self):
     with patch.object(commandline, 'parse_args') as pa:
         commandline.main()
         pa.assert_called_with(sys.argv[1:])
Пример #2
0
 def test_main(self):
     with patch.object(commandline, 'parse_args') as pa:
         commandline.main()
         pa.assert_called_with(sys.argv[1:])