e7230b7391
* 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
15 lines
419 B
Python
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)
|