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")
Esempio n. 4
0
    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)
Esempio n. 6
0
    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)
Esempio n. 7
0
    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")
Esempio n. 8
0
    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
Esempio n. 11
0
    def test_generates_keypair(self, mock_os, keygen, *args):
        mock_os.path.exists.return_value = False

        installer.installingStartup()
        assert keygen.called
Esempio n. 12
0
 def test_returns_directly_if_there_is_an_installation(self, *args):
     assert installer.installingStartup() == False