from django.core.urlresolvers import reverse

from forumuser.tests.factories import UserFactory
from thatforum.test_helpers import ThatForumTestCase


class TestUserListView(ThatForumTestCase):
    def setUp(self):
        self.user = UserFactory()
        self.list_url = reverse('user:list')

    def test_non_logged_in(self):
        response = self.GET(self.list_url, 302)

    def test_logged_in(self):
        self.login_user(self.user)
        response = self.GET(self.list_url)
        self.logout_user(self.user)

from django.core.urlresolvers import reverse

from forumuser.tests.factories import UserFactory
from thatforum.test_helpers import ThatForumTestCase


class TestUserListView(ThatForumTestCase):
    def setUp(self):
        self.user = UserFactory()
        self.list_url = reverse('user:list')

    def test_non_logged_in(self):
        response = self.GET(self.list_url, 302)

Remove logged in user test from forumuser
Remove logged in user test from forumuser

  from django.core.urlresolvers import reverse
  
  from forumuser.tests.factories import UserFactory
  from thatforum.test_helpers import ThatForumTestCase
  
  
  class TestUserListView(ThatForumTestCase):
      def setUp(self):
          self.user = UserFactory()
          self.list_url = reverse('user:list')
  
      def test_non_logged_in(self):
          response = self.GET(self.list_url, 302)
  
-     def test_logged_in(self):
-         self.login_user(self.user)
-         response = self.GET(self.list_url)
-         self.logout_user(self.user)
- 
Remove logged in user test from forumuser
## Code Before:
from django.core.urlresolvers import reverse

from forumuser.tests.factories import UserFactory
from thatforum.test_helpers import ThatForumTestCase


class TestUserListView(ThatForumTestCase):
    def setUp(self):
        self.user = UserFactory()
        self.list_url = reverse('user:list')

    def test_non_logged_in(self):
        response = self.GET(self.list_url, 302)

    def test_logged_in(self):
        self.login_user(self.user)
        response = self.GET(self.list_url)
        self.logout_user(self.user)

## Instruction:
Remove logged in user test from forumuser
## Code After:
from django.core.urlresolvers import reverse

from forumuser.tests.factories import UserFactory
from thatforum.test_helpers import ThatForumTestCase


class TestUserListView(ThatForumTestCase):
    def setUp(self):
        self.user = UserFactory()
        self.list_url = reverse('user:list')

    def test_non_logged_in(self):
        response = self.GET(self.list_url, 302)
