diff --git a/tests/i18n/tests.py b/tests/i18n/tests.py
index 6d8910b..7377666 100644
a
|
b
|
class FormattingTests(TransRealMixin, TestCase):
|
788 | 788 | 'date_added': datetime.datetime(2009, 12, 31, 6, 0, 0), |
789 | 789 | 'cents_paid': decimal.Decimal('59.47'), |
790 | 790 | 'products_delivered': 12000, |
791 | | }) |
| 791 | }) |
792 | 792 | context = Context({'form': form}) |
793 | 793 | self.assertTrue(form.is_valid()) |
794 | 794 | |
diff --git a/tests/runtests.py b/tests/runtests.py
index da6c1c4..a1c2601 100755
a
|
b
|
def setup(verbosity, test_labels):
|
168 | 168 | match = lambda label: ( |
169 | 169 | module_label == label or # exact match |
170 | 170 | module_label.startswith(label + '.') # ancestor match |
171 | | ) |
| 171 | ) |
172 | 172 | |
173 | 173 | module_found_in_labels = any(match(l) for l in test_labels_set) |
174 | 174 | |
diff --git a/tests/signing/tests.py b/tests/signing/tests.py
index 5c5c2b1..8b470b9 100644
a
|
b
|
class TestSigner(TestCase):
|
33 | 33 | signer.signature('hello'), |
34 | 34 | signing.base64_hmac('extra-salt' + 'signer', |
35 | 35 | 'hello', 'predictable-secret').decode() |
36 | | ) |
| 36 | ) |
37 | 37 | self.assertNotEqual( |
38 | 38 | signing.Signer('predictable-secret', salt='one').signature('hello'), |
39 | 39 | signing.Signer('predictable-secret', salt='two').signature('hello')) |
diff --git a/tests/validation/models.py b/tests/validation/models.py
index 958740d..ee5bcfc 100644
a
|
b
|
class UniqueForDateModel(models.Model):
|
50 | 50 | name = models.CharField(max_length=100) |
51 | 51 | |
52 | 52 | class CustomMessagesModel(models.Model): |
53 | | other = models.IntegerField(blank=True, null=True) |
| 53 | other = models.IntegerField(blank=True, null=True) |
54 | 54 | number = models.IntegerField(db_column='number_val', |
55 | 55 | error_messages={'null': 'NULL', 'not42': 'AAARGH', 'not_equal': '%s != me'}, |
56 | 56 | validators=[validate_answer_to_universe] |
diff --git a/tests/validation/test_unique.py b/tests/validation/test_unique.py
index 79b197a..0aa587f 100644
a
|
b
|
class GetUniqueCheckTests(unittest.TestCase):
|
43 | 43 | [(UniqueForDateModel, 'date', 'count', 'start_date'), |
44 | 44 | (UniqueForDateModel, 'year', 'count', 'end_date'), |
45 | 45 | (UniqueForDateModel, 'month', 'order', 'end_date')] |
46 | | ), m._get_unique_checks() |
47 | | ) |
| 46 | ), m._get_unique_checks()) |
48 | 47 | |
49 | 48 | def test_unique_for_date_exclusion(self): |
50 | 49 | m = UniqueForDateModel() |
… |
… |
class GetUniqueCheckTests(unittest.TestCase):
|
52 | 51 | [(UniqueForDateModel, ('id',))], |
53 | 52 | [(UniqueForDateModel, 'year', 'count', 'end_date'), |
54 | 53 | (UniqueForDateModel, 'month', 'order', 'end_date')] |
55 | | ), m._get_unique_checks(exclude='start_date') |
56 | | ) |
| 54 | ), m._get_unique_checks(exclude='start_date')) |
57 | 55 | |
58 | 56 | class PerformUniqueChecksTest(TestCase): |
59 | 57 | def test_primary_key_unique_check_not_performed_when_adding_and_pk_not_specified(self): |