import unittest

from django.core.urlresolvers import reverse
from django.test import TestCase
from django_factory_boy import auth as auth_factories

from tests.factories import AttendeeProfileFactory

class TestView(TestCase):
    def setUp(self):
        self.user = auth_factories.UserFactory(password='<PASSWORD>', is_superuser=True)
        is_logged = self.client.login(username=self.user.username,
                                      password='<PASSWORD>')
        self.user_profile = AttendeeProfileFactory(user=self.user)
        # self.user_p3_profile = P3ProfileFactory(profile=self.user_profile)
        self.assertTrue(is_logged)

    @unittest.skip("FIXME")
    def test_p3_profile_avatar(self):
        # p3-profile-avatar -> p3.views.profile.p3_profile_avatar
        url = reverse('p3-profile-avatar')
        response = self.client.get(url)
        self.assertEqual(response.status_code, 200)

import unittest

from django.core.urlresolvers import reverse
from django.test import TestCase
from django_factory_boy import auth as auth_factories

from tests.factories import AttendeeProfileFactory

class TestView(TestCase):
    def setUp(self):
        self.user = auth_factories.UserFactory(password='<PASSWORD>', is_superuser=True)
        is_logged = self.client.login(username=self.user.username,
                                      password='<PASSWORD>')
        self.user_profile = AttendeeProfileFactory(user=self.user)
        # self.user_p3_profile = P3ProfileFactory(profile=self.user_profile)
        self.assertTrue(is_logged)

    @unittest.skip("FIXME")
    def test_p3_profile_avatar(self):
        # p3-profile-avatar -> p3.views.profile.p3_profile_avatar
        url = reverse('p3-profile-avatar')
        response = self.client.get(url)
        self.assertEqual(response.status_code, 200)

# self.user_p3_profile = P3ProfileFactory(profile=self.user_profile) # p3-profile-avatar -> p3.views.profile.p3_profile_avatar