mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
Issue #15392: Create a unittest framework for IDLE.
Preliminary patch by Rajagopalasarma Jayakrishnan.
This commit is contained in:
parent
ecf0851809
commit
db4e5c53c9
9 changed files with 118 additions and 2 deletions
11
Lib/idlelib/idle_test/test_calltips.py
Normal file
11
Lib/idlelib/idle_test/test_calltips.py
Normal file
|
@ -0,0 +1,11 @@
|
|||
import unittest
|
||||
import idlelib.CallTips as ct
|
||||
|
||||
class Test_get_entity(unittest.TestCase):
|
||||
def test_bad_entity(self):
|
||||
self.assertIsNone(ct.get_entity('1/0'))
|
||||
def test_good_entity(self):
|
||||
self.assertIs(ct.get_entity('int'), int)
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main(verbosity=2, exit=False)
|
Loading…
Add table
Add a link
Reference in a new issue