MCPcopy Index your code
hub / github.com/python/cpython / test_Destination_repr

Method test_Destination_repr

Lib/test/test_clinic.py:4751–4762  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

4749 self.assertEqual(repr(block3), expected_repr_3)
4750
4751 def test_Destination_repr(self):
4752 c = _make_clinic()
4753
4754 destination = Destination(
4755 "foo", type="file", clinic=c, args=("eggs",)
4756 )
4757 self.assertEqual(
4758 repr(destination), "<clinic.Destination 'foo' type='file' file='eggs'>"
4759 )
4760
4761 destination2 = Destination("bar", type="buffer", clinic=c)
4762 self.assertEqual(repr(destination2), "<clinic.Destination 'bar' type='buffer'>")
4763
4764 def test_Module_repr(self):
4765 module = Module("foo", _make_clinic())

Callers

nothing calls this directly

Calls 3

DestinationClass · 0.90
_make_clinicFunction · 0.85
assertEqualMethod · 0.45

Tested by

no test coverage detected