Esempio n. 1
0
 def test_main(self, command):
     c = command.return_value = Mock()
     main()
     c.execute_from_commandline.assert_called_with()
Esempio n. 2
0
 def test_main(self, command):
     c = command.return_value = Mock()
     main(self.app)
     c.execute_from_commandline.assert_called_with()