diff options
| author | django-bot <ops@djangoproject.com> | 2022-02-08 12:09:55 +0100 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2022-02-08 12:15:38 +0100 |
| commit | 6a682b38e75d4c975b4c4493565a59f1bc14397c (patch) | |
| tree | 0bd9cda550bea26238656d9f120d769e8b41bb9e /tests/model_utils | |
| parent | e73ce08888e6f34d3f050377cfd2fbb733be94a9 (diff) | |
[4.0.x] Refs #33476 -- Reformatted code with Black.
Backport of 9c19aff7c7561e3a82978a272ecdaad40dda5c00 from main.
Diffstat (limited to 'tests/model_utils')
| -rw-r--r-- | tests/model_utils/tests.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/model_utils/tests.py b/tests/model_utils/tests.py index be4dd4300b..4f1db84f3b 100644 --- a/tests/model_utils/tests.py +++ b/tests/model_utils/tests.py @@ -4,7 +4,7 @@ from django.test import SimpleTestCase class NamedTupleClassTests(SimpleTestCase): def test_immutability(self): - row_class = create_namedtuple_class('field1', 'field2') - row = row_class('value1', 'value2') + row_class = create_namedtuple_class("field1", "field2") + row = row_class("value1", "value2") with self.assertRaises(AttributeError): - row.field3 = 'value3' + row.field3 = "value3" |
