(self)
| 926 | self.assertEqual(_info_commands(self.root, funcid), ()) |
| 927 | |
| 928 | def test_bind(self): |
| 929 | event = '<Control-Alt-Key-a>' |
| 930 | f = self.frame |
| 931 | self.assertEqual(f.bind(), ()) |
| 932 | self.assertEqual(f.bind(event), '') |
| 933 | def test1(e): pass |
| 934 | def test2(e): pass |
| 935 | |
| 936 | funcid = f.bind(event, test1) |
| 937 | self.assertEqual(f.bind(), (event,)) |
| 938 | script = f.bind(event) |
| 939 | self.assertIn(funcid, script) |
| 940 | self.assertCommandExist(funcid) |
| 941 | |
| 942 | funcid2 = f.bind(event, test2, add=True) |
| 943 | script = f.bind(event) |
| 944 | self.assertIn(funcid, script) |
| 945 | self.assertIn(funcid2, script) |
| 946 | self.assertCommandExist(funcid) |
| 947 | self.assertCommandExist(funcid2) |
| 948 | |
| 949 | def test_unbind(self): |
| 950 | event = '<Control-Alt-Key-b>' |
nothing calls this directly
no test coverage detected