(self)
| 49 | |
| 50 | class GetFieldsTests(OptionsBaseTests): |
| 51 | def test_get_fields_is_immutable(self): |
| 52 | msg = IMMUTABLE_WARNING % "get_fields()" |
| 53 | for _ in range(2): |
| 54 | # Running unit test twice to ensure both non-cached and cached |
| 55 | # result are immutable. |
| 56 | fields = Person._meta.get_fields() |
| 57 | with self.assertRaisesMessage(AttributeError, msg): |
| 58 | fields += ["errors"] |
| 59 | |
| 60 | |
| 61 | class LabelTests(OptionsBaseTests): |
nothing calls this directly
no test coverage detected