import unittest
import quantities as pq

class ValidatorTestCase(unittest.TestCase):

    def test1(self):
        self.assertEqual(1, 1)

    def register_test(self):

        class TestClass():
            intValue = 0
            def getIntValue(self):
                return self.intValue

        from sciunit.validators import register_quantity, register_type
        from cerberus import TypeDefinition, Validator

        register_type(TestClass, "TestType1")
        q = pq.Quantity([1,2,3], 'J')
        register_quantity(q, "TestType2")
        self.assertTrue(isinstance(Validator.types_mapping['TestType1'], TypeDefinition))
        self.assertTrue(isinstance(Validator.types_mapping['TestType2'], TypeDefinition))

if __name__ == '__main__':
    unittest.main()
import unittest
import quantities as pq
class ValidatorTestCase(unittest.TestCase):
    def register_test(self):
        class TestClass():
            intValue = 0
            def getIntValue(self):
                return self.intValue
        from sciunit.validators import register_quantity, register_type
        register_type(TestClass, "TestType1")
        q = pq.Quantity([1,2,3], 'J')
        register_quantity(q, "TestType2")
--- 
+++ 
@@ -1,12 +1,26 @@
 import unittest
 import quantities as pq
+
 class ValidatorTestCase(unittest.TestCase):
+
+    def test1(self):
+        self.assertEqual(1, 1)
+
     def register_test(self):
+
         class TestClass():
             intValue = 0
             def getIntValue(self):
                 return self.intValue
+
         from sciunit.validators import register_quantity, register_type
+        from cerberus import TypeDefinition, Validator
+
         register_type(TestClass, "TestType1")
         q = pq.Quantity([1,2,3], 'J')
         register_quantity(q, "TestType2")
+        self.assertTrue(isinstance(Validator.types_mapping['TestType1'], TypeDefinition))
+        self.assertTrue(isinstance(Validator.types_mapping['TestType2'], TypeDefinition))
+
+if __name__ == '__main__':
+    unittest.main()
Add assert to validator test cases
