diff options
Diffstat (limited to 'tests/hier_block_test.py')
-rw-r--r-- | tests/hier_block_test.py | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/hier_block_test.py b/tests/hier_block_test.py new file mode 100644 index 0000000..78bb1a0 --- /dev/null +++ b/tests/hier_block_test.py @@ -0,0 +1,20 @@ + +import unittest +import gras + +class HierBlockTest(unittest.TestCase): + + def test_expected_attrs(self): + self.assertTrue(hasattr(gras, 'HierBlock')) + self.assertTrue(hasattr(gras, 'TopBlock')) + + def test_make_hier(self): + h = gras.HierBlock('my_hb') + print h + + def test_make_top(self): + t = gras.TopBlock('my_tb') + print t + +if __name__ == '__main__': + unittest.main() |