Browse Source

Added a from_name method's test for the DataHandler class

Roland Haroutiounian 8 years ago
parent
commit
b7ae2c465d
1 changed files with 5 additions and 0 deletions
  1. 5
    0
      tests/datahandlers/test_datahandler.py

+ 5
- 0
tests/datahandlers/test_datahandler.py View File

@@ -30,3 +30,8 @@ class DataHandlerTestCase(unittest.TestCase):
30 30
             DataHandler.register_new_handler('testvarchar', Exception)
31 31
         except Exception as err:
32 32
             self.assertEqual(ValueError, type(err))
33
+
34
+    def test_from_name(self):
35
+        DataHandler.register_new_handler('test_varchar', Varchar)
36
+        self.assertEqual(DataHandler.from_name('test_varchar'), Varchar)
37
+

Loading…
Cancel
Save