def test_main_calls_Netspeak_instance_with_output_of_parse_input( self, Netspeak, argv, mprint, parse_input): parse_input_return = Mock() parse_input.return_value = parse_input_return netspeak_instance = Mock() Netspeak.return_value = netspeak_instance main() netspeak_instance.assert_called_once_with(parse_input_return)
def test_main_creates_Netspeak_instance(self, Netspeak, argv, mprint, parse_input): main() Netspeak.assert_called_once_with()
def test_main_creates_Netspeak_instance(self, Netspeak, argv, mprint): from proofreader.proofread import main main() Netspeak.assert_called_once_with()