def test_create_new_auth_customer(self):
        request = self.factory.get('/', follow=True)
        request.user = self.lisa
        request.session = {'session_key': 'lisa1234'}
        self.cm.process_request(request)
        self.assertEqual(request.customer.user, self.lisa)
Test that a new authenticated Customer is created for logged-in User
dataset/ETHPy150Open awesto/django-shop/testshop/skip_test_customer.py/CustomerTest.test_create_new_auth_customer