def METHOD_NAME(self):
    super().METHOD_NAME()
    customer = UserFactory()
    product1 = create_product(partner_name="Partner 1", price=D(5))
    product2 = create_product(partner_name="Partner 2", price=D(10))
    create_product(partner_name="Partner 2", price=D(15))
    basket1 = create_basket(empty=True)
    basket1.add_product(product1)
    create_order(basket=basket1, user=customer)
    basket2 = create_basket(empty=True)
    basket2.add_product(product1)
    basket2 = create_basket(empty=True)
    basket2.add_product(product2)
    for i in range(9):
        create_order(basket=basket2, user=customer, number="1000%s" % i)
    stockrecord1 = product1.stockrecords.first()
    stockrecord2 = product2.stockrecords.first()
    self.partner1 = stockrecord1.partner
    self.partner2 = stockrecord2.partner
    StockAlert.objects.create(stockrecord=stockrecord1, threshold=10)
    StockAlert.objects.create(stockrecord=stockrecord2, threshold=5)