def METHOD_NAME(self):
    # is source host
    if self.is_src:
        if self.pre_sub_test:
            if self.login_before_pre_tests == "yes":
                vm = env.get_vm(params["main_vm"])
                vm.wait_for_login(timeout=self.login_timeout)
            error.context("Run sub test '%s' before migration on src"
                          % self.pre_sub_test, logging.info)
            utils_test.run_virt_sub_test(test, params, env,
                                         self.pre_sub_test)