|
@@ -35,3 +35,10 @@ class DataHandlerTestCase(unittest.TestCase):
|
35
|
35
|
DataHandler.register_new_handler('test_varchar', Varchar)
|
36
|
36
|
self.assertEqual(DataHandler.from_name('test_varchar'), Varchar)
|
37
|
37
|
|
|
38
|
+ def test_from_missing_name(self):
|
|
39
|
+ DataHandler.register_new_handler('test_varchar1', Varchar)
|
|
40
|
+ DataHandler.register_new_handler('test_varchar2', Varchar)
|
|
41
|
+ try:
|
|
42
|
+ DataHandler.from_name('test_varchar3')
|
|
43
|
+ except Exception as err:
|
|
44
|
+ self.assertEqual(NameError, type(err))
|