#NEWLINE# def test_execs( self ) : #NEWLINE# #INDENT# '\n        Test to return a list of all files specified as ``ExecStart`` for all\n        services\n        ' #NEWLINE# mock = MagicMock ( return_value = [ 'a' , 'b' ] ) #NEWLINE# with patch . object ( systemd , 'get_all' , mock ) : #NEWLINE# #INDENT# mock = MagicMock ( return_value = { #NEWLINE# #INDENT# 'ExecStart' : { #NEWLINE# #INDENT# 'path' : 'c' , #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# } ) #NEWLINE# with patch . object ( systemd , 'show' , mock ) : #NEWLINE# #INDENT# self . assertDictEqual ( systemd . execs ( ) , { #NEWLINE# #INDENT# 'a' : 'c' , #NEWLINE# 'b' : 'c' , #NEWLINE# #UNINDENT# } )