Add template_default_cache runtime tests

Also correct illegal C++ namespace names
This commit is contained in:
William S Fulton 2017-01-16 07:46:03 +00:00
commit 6db71c690a
3 changed files with 34 additions and 7 deletions

View file

@ -0,0 +1,9 @@
import template_default_cache
ap = template_default_cache.get_mp_a();
bp = template_default_cache.get_mp_b();
if not isinstance(ap, template_default_cache.AModelPtr):
raise RuntimeError("get_mp_a fail")
if not isinstance(bp, template_default_cache.BModelPtr):
raise RuntimeError("get_mp_b fail")