#NEWLINE# @ mock . patch ( 'mkdocs.commands.serve.serve' , autospec = True ) #NEWLINE# def test_serve( self , mock_serve ) : #NEWLINE# #INDENT# result = self . runner . invoke ( cli . cli , [ 'serve' ] , catch_exceptions = False ) #NEWLINE# self . assertEqual ( result . exit_code , 0 ) #NEWLINE# self . assertEqual ( self . call_count , 1 )