OpenSlides/tests/integration/users/test_views.py
Oskar Hahn e7230b7391 New Test order.
* seperate unittests and integration tests
* moved old tests in seperat folder 'old'
* created a testrunner that does not create a testdatabase, if only unittests are run
* wrote some unit- and integration tests as examples
* fixed user.get_short_name() to use the sort order from config
* fixed wrong url_pattern in the user app
2015-01-24 18:00:03 +01:00

15 lines
419 B
Python

from openslides.utils.test import TestCase
from django.test.client import Client
class UserViews(TestCase):
def setUp(self):
self.client = Client()
self.client.login(username='admin', password='admin')
def test_user_list(self):
response = self.client.get('/user/')
self.assertTemplateUsed(response, 'users/user_list.html')
self.assertEqual(response.status_code, 200)