2013-05-27 22:32:03 -03:00
|
|
|
import unittest
|
|
|
|
import idlelib.CallTips as ct
|
|
|
|
|
2013-07-30 02:36:48 -03:00
|
|
|
class Get_entityTest(unittest.TestCase):
|
2013-05-27 22:32:03 -03:00
|
|
|
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)
|