Exemple #1
0
 def test_main_wrong_params(self, show_help_mock):
     main("add-url name")
     show_help_mock.assert_called_with("add-url name", exit=2)
 def test_main_wrong_params(self, show_help_mock):
     main("add-url name")
     show_help_mock.assert_called_with("add-url name", exit=2)
Exemple #3
0
 def test_main(self, add_url_mock):
     main("add-url", "myhc", "http://tsuru.io")
     add_url_mock.assert_called_with("myhc", "http://tsuru.io")
 def test_main(self, add_url_mock):
     main("add-url", "myhc", "http://tsuru.io")
     add_url_mock.assert_called_with("myhc", "http://tsuru.io")