~ubuntu-branches/ubuntu/quantal/python-django/quantal-security

« back to all changes in this revision

Viewing changes to tests/modeltests/validation/test_unique.py

  • Committer: Bazaar Package Importer
  • Author(s): Jamie Strandboge
  • Date: 2010-10-12 11:34:35 UTC
  • mfrom: (1.2.7 upstream)
  • mto: This revision was merged to the branch mainline in revision 30.
  • Revision ID: james.westby@ubuntu.com-20101012113435-9lnsrh0i3mxozbt0
Tags: upstream-1.2.3
ImportĀ upstreamĀ versionĀ 1.2.3

Show diffs side-by-side

added added

removed removed

Lines of Context:
40
40
            ), m._get_unique_checks()
41
41
        )
42
42
 
 
43
    def test_unique_for_date_exclusion(self):
 
44
        m = UniqueForDateModel()
 
45
        self.assertEqual((
 
46
            [(UniqueForDateModel, ('id',))],
 
47
            [(UniqueForDateModel, 'year', 'count', 'end_date'),
 
48
             (UniqueForDateModel, 'month', 'order', 'end_date')]
 
49
            ), m._get_unique_checks(exclude='start_date')
 
50
        )
 
51
 
43
52
class PerformUniqueChecksTest(unittest.TestCase):
44
53
    def setUp(self):
45
54
        # Set debug to True to gain access to connection.queries.