def METHOD_NAME(self):
    reference_data = datetime.now()
    leaves_count = self.env["resource.calendar.leaves"].search_count(
        [
            ("date_from", "<=", reference_data),
            ("date_to", ">=", reference_data),
            ("leave_type", "in", ["F", "B"]),
        ]
    )
    self.assertEqual(
        leaves_count, self.calendar.data_eh_feriado_bancario(reference_data)
    )
    reference_data = datetime(2023, 4, 21)
    leaves_count = self.env["resource.calendar.leaves"].search_count(
        [
            ("date_from", "<=", reference_data),
            ("date_to", ">=", reference_data),
            ("leave_type", "in", ["F", "B"]),
        ]
    )
    self.assertEqual(
        leaves_count, self.calendar.data_eh_feriado_bancario(reference_data)
    )
    reference_data = datetime(2023, 4, 13)
    leaves_count = self.env["resource.calendar.leaves"].search_count(
        [
            ("date_from", "<=", reference_data),
            ("date_to", ">=", reference_data),
            ("leave_type", "in", ["F", "B"]),
        ]
    )
    self.assertEqual(
        leaves_count, self.calendar.data_eh_feriado_bancario(reference_data)
    )