def test_cpp_compiler_used_to_run_executable_for_cpp_file( self, mock_gpp_run): self.compiler = Compiler(self.filename_cpp) self.compiler.run() mock_gpp_run.assert_called_once_with()
def test_cpp_compiler_selected_for_cpp_file(self, mock_gpp_compile): self.compiler = Compiler(self.filename_cpp) self.compiler.compile() mock_gpp_compile.assert_called_once_with()