MCPcopy
hub / github.com/django/django / test_using_arg

Method test_using_arg

tests/logging_tests/tests.py:452–456  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

450 },
451 )
452 def test_using_arg(self):
453 handler = AdminEmailHandler(using="custom")
454 handler.emit(self.make_log_record())
455 self.assertEqual(len(mail.outbox), 1)
456 self.assertEqual(mail.outbox[0].sent_using, "custom")
457
458 # RemovedInDjango70Warning.
459 def test_using_conflicts_with_email_backend(self):

Callers

nothing calls this directly

Calls 3

emitMethod · 0.95
make_log_recordMethod · 0.95
AdminEmailHandlerClass · 0.90

Tested by

no test coverage detected