def tearDown(self):
    'Restores settings to avoid breaking other tests.'
    settings.MIDDLEWARE_CLASSES = self.curr_middleware
    settings.AUTHENTICATION_BACKENDS = self.curr_auth
Restores settings to avoid breaking other tests.
def tearDown(self):
    
    settings.MIDDLEWARE_CLASSES = self.curr_middleware
    settings.AUTHENTICATION_BACKENDS = self.curr_auth