Beispiel #1
0
 def _assert(term):
     """Asserts an update."""
     count = pyessv.get_count()
     pyessv.save(term)
     tu.assert_int(pyessv.get_count(), count)
     term_ = pyessv.get_term(term.domain, term.subdomain, term.kind, term.name)
     tu.assert_terms(term, term_)
Beispiel #2
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)
Beispiel #3
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)