diff --git a/tests/regressiontests/generic_views/edit.py b/tests/regressiontests/generic_views/edit.py
index 0adcb15..e6113b0 100644
a
|
b
|
from django.core.urlresolvers import reverse
|
3 | 3 | from django import forms |
4 | 4 | from django.test import TestCase |
5 | 5 | from django.utils.unittest import expectedFailure |
| 6 | from django.views.generic.edit import FormMixin |
6 | 7 | |
7 | 8 | from regressiontests.generic_views.models import Artist, Author |
8 | 9 | from regressiontests.generic_views import views |
9 | 10 | |
| 11 | class FormMixinTests(TestCase): |
| 12 | def test_initial_not_shared(self): |
| 13 | initial = FormMixin().get_initial() |
| 14 | initial['foo'] = 'bar' |
| 15 | |
| 16 | fresh_initial = FormMixin().get_initial() |
| 17 | |
| 18 | self.assertNotEqual(initial, fresh_initial) |
| 19 | |
10 | 20 | class ModelFormMixinTests(TestCase): |
11 | 21 | def test_get_form(self): |
12 | 22 | form_class = views.AuthorGetQuerySetFormView().get_form_class() |
diff --git a/tests/regressiontests/generic_views/tests.py b/tests/regressiontests/generic_views/tests.py
index a4010aa..cc8b15b 100644
a
|
b
|
|
1 | 1 | from regressiontests.generic_views.base import ViewTest, TemplateViewTest, RedirectViewTest |
2 | 2 | from regressiontests.generic_views.dates import ArchiveIndexViewTests, YearArchiveViewTests, MonthArchiveViewTests, WeekArchiveViewTests, DayArchiveViewTests, DateDetailViewTests |
3 | 3 | from regressiontests.generic_views.detail import DetailViewTest |
4 | | from regressiontests.generic_views.edit import ModelFormMixinTests, CreateViewTests, UpdateViewTests, DeleteViewTests |
| 4 | from regressiontests.generic_views.edit import FormMixinTests, ModelFormMixinTests, CreateViewTests, UpdateViewTests, DeleteViewTests |
5 | 5 | from regressiontests.generic_views.list import ListViewTests |