'User without profile and isn\'t banned'

def test_profile_middleware_no_profile(self):

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