'Verify if user does not have profile he/she is redirected to account_settings.'

def test_redirect_account_settings(self):

    UserProfile.objects.get(user=self.user).delete()
    response = self.client.get(self.path)
    self.assertRedirects(response, reverse('account_settings'))
