def METHOD_NAME(self):
    super(TestJournalLockDate, self).METHOD_NAME()
    self.account_move_obj = self.env["account.move"]
    self.account_move_line_obj = self.env["account.move.line"]
    self.company_id = self.ref("base.main_company")
    self.partner = self.browse_ref("base.res_partner_12")
    self.account = self.company_data["default_account_revenue"]
    self.account2 = self.company_data["default_account_expense"]
    self.journal = self.company_data["default_journal_bank"]
    # create a move and post it
    self.move = self.account_move_obj.create(
        {
            "date": date.today(),
            "journal_id": self.journal.id,
            "line_ids": [
                (
                    0,
                    0,
                    {
                        "account_id": self.account.id,
                        "credit": 1000.0,
                        "name": "Credit line",
                    },
                ),
                (
                    0,
                    0,
                    {
                        "account_id": self.account2.id,
                        "debit": 1000.0,
                        "name": "Debit line",
                    },
                ),
            ],
        }
    )
    self.move.action_post()
    # lock journal, set 'Lock Date for Non-Advisers'
    self.journal.period_lock_date = date.today() + timedelta(days=2)