File: test_views.py

package info (click to toggle)
django-ajax-selects 1.7.0-5
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 356 kB
  • sloc: python: 924; javascript: 191; makefile: 4
file content (14 lines) | stat: -rw-r--r-- 396 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14

from django.test import TestCase
from django.contrib.auth.models import User
from django.test import Client


class TestViews(TestCase):

    def setUp(self):
        self.user = User.objects.create_superuser(username='admin',
            email='email@example.com',
            password='password')
        self.client = Client()
        self.client.login(username='admin', password='password')