def test_generate_order_number_custom(self):
        last_assigned_order_serial_number = 206

        brand = create_brand(code='LOL')
        party = create_party(brand=brand, number=3)
        self.set_order_number_sequence(value=last_assigned_order_serial_number)

        actual = generate_order_number(party)

        self.assertEqual(actual, 'LOL-03-B00207')
    def test_generate_order_number_default(self):
        self.set_order_number_sequence()

        actual = generate_order_number(self.party)

        self.assertEqual(actual, 'AEC-01-B00001')