MCPcopy
hub / github.com/django/django / test_explode

Method test_explode

tests/user_commands/tests.py:84–87  ·  view source on GitHub ↗

An unknown command raises CommandError

(self)

Source from the content-addressed store, hash-verified

82 self.assertEqual(translation.get_language(), "fr")
83
84 def test_explode(self):
85 """An unknown command raises CommandError"""
86 with self.assertRaisesMessage(CommandError, "Unknown command: 'explode'"):
87 management.call_command(("explode",))
88
89 def test_system_exit(self):
90 """Exception raised in a command should raise CommandError with

Callers

nothing calls this directly

Calls 1

assertRaisesMessageMethod · 0.80

Tested by

no test coverage detected