Ejemplo n.º 1
0
    def _test(func, typeof):
        """Inner test.

        """
        node = func()
        tu.assert_object(node, typeof)
        assert node == load(node.namespace)
Ejemplo n.º 2
0
 def test_create_01():
     """Create term."""
     term = tu.create_term()
     tu.assert_object(term, pyessv.Term)
     tu.assert_int(pyessv.get_count(), 0)
Ejemplo n.º 3
0
 def test_create_02():
     """Create & save term."""
     term = pyessv.get_term(tu.TERM_DOMAIN, tu.TERM_SUBDOMAIN, tu.TERM_KIND, tu.TERM_NAME)
     tu.assert_object(term, pyessv.Term)
Ejemplo n.º 4
0
def test_get_term_01():
	"""pyessv-tests: cache: get term

	"""
	term = pyessv.get_term(tu.TERM_DOMAIN, tu.TERM_SUBDOMAIN, tu.TERM_KIND, tu.TERM_NAME)
	tu.assert_object(term, pyessv.Term)