def test_generate_article_number_custom(self):
        last_assigned_article_serial_number = 41

        brand = create_brand(code='XYZ')
        party = create_party(brand=brand, number=9)
        self.set_article_number_sequence(value=last_assigned_article_serial_number)

        actual = generate_article_number(party)

        self.assertEqual(actual, 'XYZ-09-A00042')
    def test_generate_article_number_default(self):
        self.set_article_number_sequence()

        actual = generate_article_number(self.party)

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