diff options
| author | Loic Bistuer <loic.bistuer@sixmedia.com> | 2013-12-09 00:20:06 +0700 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2013-12-10 15:12:48 -0500 |
| commit | a2814846ca006b4fbf3a893ec52cd9d444b3a3eb (patch) | |
| tree | 780498814e830e2b8ee6ac435575afdc2e8e63f6 /tests/model_validation | |
| parent | 0873200e7f61315ad375061a3dc6d37b514ff985 (diff) | |
Fixed E124 pep8 warnings.
Diffstat (limited to 'tests/model_validation')
| -rw-r--r-- | tests/model_validation/tests.py | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/tests/model_validation/tests.py b/tests/model_validation/tests.py index c55a1307e1..225656e4cb 100644 --- a/tests/model_validation/tests.py +++ b/tests/model_validation/tests.py @@ -32,16 +32,18 @@ class ModelValidationTest(TestCase): post_init.connect(OnPostInit(), sender='missing-app.Model') e = ModelErrorCollection(six.StringIO()) validate_model_signals(e) - self.assertSetEqual(set(e.errors), { - ('model_validation.tests', + self.assertSetEqual( + set(e.errors), + {( + 'model_validation.tests', "The `on_post_init` function was connected to the `post_init` " "signal with a lazy reference to the 'missing-app.Model' " "sender, which has not been installed." - ), - ('model_validation.tests', + ), ( + 'model_validation.tests', "An instance of the `OnPostInit` class was connected to " "the `post_init` signal with a lazy reference to the " "'missing-app.Model' sender, which has not been installed." - ) - }) + )} + ) post_init.unresolved_references = unresolved_references |
