#NEWLINE# def test_copy_calls_copy_cygwin_when_on_cygwin_system( mocker ) : #NEWLINE# #INDENT# mocker . patch ( 'passpie.clipboard.platform.system' , return_value = 'cygwin system' ) #NEWLINE# mock_copy_cygwin = mocker . patch ( 'passpie.clipboard._copy_cygwin' ) #NEWLINE# text = 's3cr3t' #NEWLINE# clipboard . copy ( mock_copy_cygwin ) #NEWLINE# assert mock_copy_cygwin . called #NEWLINE# mock_copy_cygwin . assert_called_once_with ( text , 0 )