(self)
| 813 | self.assertEqual(quartz_tag.content_object, self.quartz) |
| 814 | |
| 815 | def test_fetch_mode_raise(self): |
| 816 | tag = TaggedItem.objects.fetch_mode(RAISE).get(tag="yellow") |
| 817 | msg = "Fetching of TaggedItem.content_object blocked." |
| 818 | with self.assertRaisesMessage(FieldFetchBlocked, msg) as cm: |
| 819 | tag.content_object |
| 820 | self.assertIsNone(cm.exception.__cause__) |
| 821 | self.assertTrue(cm.exception.__suppress_context__) |
| 822 | |
| 823 | def test_fetch_mode_copied_forward_fetching_one(self): |
| 824 | tag = TaggedItem.objects.fetch_mode(FETCH_PEERS).get(tag="yellow") |
nothing calls this directly
no test coverage detected