diff options
| author | django-bot <ops@djangoproject.com> | 2022-02-03 20:24:19 +0100 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2022-02-07 20:37:05 +0100 |
| commit | 9c19aff7c7561e3a82978a272ecdaad40dda5c00 (patch) | |
| tree | f0506b668a013d0063e5fba3dbf4863b466713ba /tests/model_utils | |
| parent | f68fa8b45dfac545cfc4111d4e52804c86db68d3 (diff) | |
| download | django-9c19aff7c7561e3a82978a272ecdaad40dda5c00.tar.gz | |
Refs #33476 -- Reformatted code with Black.
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" |
