MCPcopy
hub / github.com/django/django / assertNoOutput

Method assertNoOutput

tests/admin_scripts/tests.py:183–187  ·  view source on GitHub ↗

Utility assertion: assert that the given stream is empty

(self, stream)

Source from the content-addressed store, hash-verified

181 self.assertIn(member, container, msg=msg)
182
183 def assertNoOutput(self, stream):
184 "Utility assertion: assert that the given stream is empty"
185 self.assertEqual(
186 len(stream), 0, "Stream should be empty: actually contains '%s'" % stream
187 )
188
189 def assertOutput(self, stream, msg, regex=False):
190 "Utility assertion: assert that the given message exists in the output"

Calls

no outgoing calls

Tested by

no test coverage detected