Mercurial > hg > GlobalNeighbors
comparison 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 |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:5dba84370182 |
---|---|
1 #!/usr/bin/env python | |
2 | |
3 """ | |
4 basic tests for schema | |
5 """ | |
6 | |
7 import unittest | |
8 from globalneighbors import schema | |
9 | |
10 class SchemaTest(unittest.TestCase): | |
11 | |
12 def test_conformity(self): | |
13 """basic sanity tests""" | |
14 | |
15 assert len(schema.descriptions) == len(schema.types) | |
16 assert set(schema.descriptions.keys()) == set(schema.types.keys()) | |
17 | |
18 if __name__ == '__main__': | |
19 unittest.main() |