def METHOD_NAME(self):
    client = Client()
    exhibitor = Exhibitor.objects.get(pk=1)
    adminUser = User.objects.create(
        username="admin", email="admin@admin.com", is_superuser=True
    )
    adminUser.set_password("hej")
    adminUser.save()
    login = client.login(username="admin", password="hej")
    self.assertEqual(login, True)
    # Should NOT work to send email for user without staffstatus
    response = client.get("/fairs/2017/exhibitors/1/")
    self.assertEqual(response.status_code, 200)
    response = client.get("/fairs/2017/exhibitors/1/send_emails/")
    self.assertEqual(response.status_code, 403)
    response = client.get("/fairs/2017/exhibitors/1/send_cr_receipts")
    self.assertEqual(response.status_code, 403)
    # Should work to send email for user with staff-status
    adminUser.is_staff = True
    adminUser.save()
    response = client.get("/fairs/2017/exhibitors/1/send_emails/")
    self.assertEqual(response.status_code, 200)
    response = client.get("/fairs/2017/exhibitors/1/send_cr_receipts")
    self.assertEqual(response.status_code, 200)
    response = client.get("/fairs/2017/exhibitors/1/emails_confirmation/")
    self.assertEqual(response.status_code, 200)
    self.assertEqual(len(mail.outbox), 1)
    # Correct message if no orders
    self.assertEqual(
        mail.outbox[0].body,
        get_template("exhibitors/cr_receipt.html").render(
            (
                {
                    "orders_info": [],
                    "total_price": 0,
                    "exhibitor_name": exhibitor.company.name,
                }
            )
        ),
    )
    # Correct message if adding some orders
    product1 = Product.objects.get(name="product1")
    product2 = Product.objects.get(name="product2")
    Order.objects.create(exhibitor=exhibitor, product=product1, amount=1)
    Order.objects.create(exhibitor=exhibitor, product=product2, amount=2)
    response = client.get("/fairs/2017/exhibitors/1/send_emails/")
    self.assertEqual(response.status_code, 200)
    response = client.get("/fairs/2017/exhibitors/1/send_cr_receipts")
    self.assertEqual(response.status_code, 200)
    response = client.get("/fairs/2017/exhibitors/1/emails_confirmation/")
    self.assertEqual(response.status_code, 200)
    self.assertEqual(len(mail.outbox), 2)
    self.assertEqual(
        mail.outbox[1].body,
        get_template("exhibitors/cr_receipt.html").render(
            (
                {
                    "orders_info": [
                        {"product": "product1", "price": 100, "amount": 1},
                        {"product": "product2", "price": 400, "amount": 2},
                    ],
                    "total_price": 500,
                    "exhibitor_name": exhibitor.company.name,
                }
            )
        ),
    )