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

Method test_unbind

Lib/test/test_tkinter/test_misc.py:949–963  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

947 self.assertCommandExist(funcid2)
948
949 def test_unbind(self):
950 event = '<Control-Alt-Key-b>'
951 f = self.frame
952 self.assertEqual(f.bind(), ())
953 self.assertEqual(f.bind(event), '')
954 def test1(e): pass
955 def test2(e): pass
956
957 funcid = f.bind(event, test1)
958 funcid2 = f.bind(event, test2, add=True)
959
960 self.assertRaises(TypeError, f.unbind)
961 f.unbind(event)
962 self.assertEqual(f.bind(event), '')
963 self.assertEqual(f.bind(), ())
964
965 def test_unbind2(self):
966 f = self.frame

Callers

nothing calls this directly

Calls 4

assertEqualMethod · 0.45
bindMethod · 0.45
assertRaisesMethod · 0.45
unbindMethod · 0.45

Tested by

no test coverage detected