diff tests/test_schema.py @ 0:5dba84370182

initial commit; half-working prototype
author Jeff Hammel <k0scist@gmail.com>
date Sat, 24 Jun 2017 12:03:39 -0700
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/test_schema.py	Sat Jun 24 12:03:39 2017 -0700
@@ -0,0 +1,19 @@
+#!/usr/bin/env python
+
+"""
+basic tests for schema
+"""
+
+import unittest
+from globalneighbors import schema
+
+class SchemaTest(unittest.TestCase):
+
+    def test_conformity(self):
+        """basic sanity tests"""
+
+        assert len(schema.descriptions) == len(schema.types)
+        assert set(schema.descriptions.keys()) == set(schema.types.keys())
+
+if __name__ == '__main__':
+    unittest.main()