def formula_test(): dirpath=tempfile.gettempdir() short_name = "Formula-CONF-REC-PER-Errata-2011-03-16.zip" url = "http://www.xbrl.org/Specification/formula/REC-2009-06-22/conformance/Formula-CONF-REC-PER-Errata-2011-03-16.zip" index = "REC-PER-Errata-testcases-2011-03-16/index.xml" file_name = os.path.join(dirpath, short_name) check_and_setup(file_name, url, dirpath, short_name) for index, test, variation in TestCntlr().run(os.path.join(dirpath, index), False, False, False): yield(make_checker("Formula", test, variation))
def efm_test(): dirpath=tempfile.gettempdir() short_name = "efm-18-120228.zip" url = "http://www.sec.gov/info/edgar/ednews/efmtest/efm-18-120228.zip" index = "efm-18-120228/conf/testcases.xml" file_name = os.path.join(dirpath, short_name) check_and_setup(file_name, url, dirpath, short_name) for index, test, variation in TestCntlr().run(os.path.join(dirpath, index), True, True, False): yield(make_checker("EFM", test, variation))
def xdt_test(): dirpath=tempfile.gettempdir() short_name = "XDT-CONF-CR4-2009-10-06.zip" url = "http://www.xbrl.org/2009/XDT-CONF-CR4-2009-10-06.zip" index = "XDT-CONF-CR4-2009-10-06/xdt.xml" file_name = os.path.join(dirpath, short_name) check_and_setup(file_name, url, dirpath, short_name) for index, test, variation in TestCntlr().run(os.path.join(dirpath, index), False, False, False): yield(make_checker("XDT", test, variation))
def xbrl_test(): dirpath=tempfile.gettempdir() short_name = "XBRL-CONF-CR4-2008-07-02.zip" url = "http://www.xbrl.org/2008/XBRL-CONF-CR4-2008-07-02.zip" svn_repo = "http://publicsvn.xbrl.org/svn/public/base-specification-conformance/2008-07-02/" index = "XBRL-CONF-CR4-2008-07-02/xbrl.xml" file_name = os.path.join(dirpath, short_name) check_and_setup(file_name, url, dirpath, short_name) for index, test, variation in TestCntlr().run(os.path.join(dirpath, index), False, False, True): yield(make_checker("XBRL", test, variation))