(self)
| 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 |
nothing calls this directly
no test coverage detected