'User is banned'

def test_profile_middleware_banned(self):

    req = self.request('/projects/import', method='post', data=self.data)
    req.user = get(User)
    req.user.profile.banned = True
    req.user.profile.save()
    self.assertTrue(req.user.profile.banned)
    resp = ImportWizardView.as_view()(req)
    self.assertEqual(resp.status_code, 302)
    self.assertEqual(resp['location'], '/')
