def test_create_new_anonymous_customer(self):
        request = self.factory.get('/', follow=True)
        request.user = AnonymousUser()
        request.session = {'session_key': 'anon1234'}
        self.cm.process_request(request)
        self.assertTrue(request.customer)
        self.assertEqual(request.customer.user, None)
Test that CustomerMiddleware creates an anonymous Customer for
dataset/ETHPy150Open awesto/django-shop/testshop/skip_test_customer.py/CustomerTest.test_create_new_anonymous_customer