Explorar el Código

Added a from_name method's test for the DataHandler class

Roland Haroutiounian hace 7 años
padre
commit
b7ae2c465d
Se han modificado 1 ficheros con 5 adiciones y 0 borrados
  1. 5
    0
      tests/datahandlers/test_datahandler.py

+ 5
- 0
tests/datahandlers/test_datahandler.py Ver fichero

@@ -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…
Cancelar
Guardar