def test_copies_startup_app_caller_file_on_install_target(self, mock_os,keygen,copy,*args): mock_os.path.exists.return_value = False installer.installingStartup() assert copy.mock_calls[0] == call("./InstallerFiles/toBeCopied/" + installer.startupAppCaller, \ "/etc/init.d" + "/" + installer.startupAppCaller)
def test_copies_startup_app_caller_file(self, mock_os,keygen,link,*args): mock_os.path.exists.return_value = False installer.installingStartup() assert link.mock_calls[2] == call(installer.toCopyPath + "/" + installer.startupAppCaller, \ installer.installDirUnixApp + "/" + installer.startupAppCaller)
def test_copies_startup_app_caller_file_on_install_target(self, mock_os,keygen,copy,*args): mock_os.path.exists.return_value = False installer.installingStartup() assert copy.mock_calls[0] == call("./InstallerFiles/toBeCopied/com.user.loginscript.plist", \ "/Library/LaunchAgents/com.user.loginscript.plist")
def test_copies_udp_config_client_file(self, mock_os, keygen, link, *args): mock_os.path.exists.return_value = False installer.installingStartup() assert link.mock_calls[1] == call(installer.toCopyPath + "/" + installer.udpClientFileCFG, \ installer.installDirUnixApp + "/" + installer.udpClientFileCFG)
def test_copies_udp_config_client_file(self, mock_os,keygen,link,*args): mock_os.path.exists.return_value = False installer.installingStartup() assert link.mock_calls[1] == call(installer.toCopyPath + "/" + installer.udpClientFileCFG, \ installer.installDirUnixApp + "/" + installer.udpClientFileCFG)
def test_copies_startup_app_caller_file_on_install_target( self, mock_os, keygen, copy, *args): mock_os.path.exists.return_value = False installer.installingStartup() assert copy.mock_calls[0] == call("./InstallerFiles/toBeCopied/" + installer.startupAppCaller, \ "/etc/init.d" + "/" + installer.startupAppCaller)
def test_copies_startup_app_caller_file_on_install_target( self, mock_os, keygen, copy, *args): mock_os.path.exists.return_value = False installer.installingStartup() assert copy.mock_calls[0] == call("./InstallerFiles/toBeCopied/com.user.loginscript.plist", \ "/Library/LaunchAgents/com.user.loginscript.plist")
def test_copies_startup_app_caller_file(self, mock_os, keygen, link, *args): mock_os.path.exists.return_value = False installer.installingStartup() assert link.mock_calls[2] == call(installer.toCopyPath + "/" + installer.startupAppCaller, \ installer.installDirUnixApp + "/" + installer.startupAppCaller)
def test_generates_keypair(self,mock_os,keygen,*args): mock_os.path.exists.return_value = False installer.installingStartup() assert keygen.called
def test_returns_directly_if_there_is_an_installation(self, *args): assert installer.installingStartup() == False
def test_generates_keypair(self, mock_os, keygen, *args): mock_os.path.exists.return_value = False installer.installingStartup() assert keygen.called