Пример #1
0
    def test_get_linkbase(self):
        schema = xbrl.get_linkbase(self.instance_file, "xsd")
        pre_linkbase = xbrl.get_linkbase(self.instance_file, "pre")
        def_linkbase = xbrl.get_linkbase(self.instance_file, "def")
        cal_linkbase = xbrl.get_linkbase(self.instance_file, "cal")
        lab_linkbase = xbrl.get_linkbase(self.instance_file, "lab")

        self.assertEqual("tests/assets/abc-20130331.xsd", schema)
        self.assertEqual("tests/assets/abc-20130331_pre.xml", pre_linkbase)
        self.assertEqual("tests/assets/abc-20130331_def.xml", def_linkbase)
        self.assertEqual("tests/assets/abc-20130331_cal.xml", cal_linkbase)
        self.assertEqual("tests/assets/abc-20130331_lab.xml", lab_linkbase)
Пример #2
0
    def test_get_linkbase(self):
        schema = xbrl.get_linkbase(self.instance_file, "xsd")
        pre_linkbase = xbrl.get_linkbase(self.instance_file, "pre")
        def_linkbase = xbrl.get_linkbase(self.instance_file, "def")
        cal_linkbase = xbrl.get_linkbase(self.instance_file, "cal")
        lab_linkbase = xbrl.get_linkbase(self.instance_file, "lab")

        self.assertEqual("tests/assets/abc-20130331.xsd", schema)
        self.assertEqual("tests/assets/abc-20130331_pre.xml", pre_linkbase)
        self.assertEqual("tests/assets/abc-20130331_def.xml", def_linkbase)
        self.assertEqual("tests/assets/abc-20130331_cal.xml", cal_linkbase)
        self.assertEqual("tests/assets/abc-20130331_lab.xml", lab_linkbase)
Пример #3
0
 def setUp(self):
     self.instance_file = "tests/assets/abc-20130331.xml"
     cal_linkbase = xbrl.get_linkbase(self.instance_file, "cal")
     tree = etree.parse(self.instance_file)
     cal_tree = etree.parse(cal_linkbase)
     self.root = tree.getroot()
     self.cal_root = cal_tree.getroot()
Пример #4
0
 def setUp(self):
     self.instance_file = "tests/assets/abc-20130331.xml"
     cal_linkbase = xbrl.get_linkbase(self.instance_file, "cal")
     tree = etree.parse(self.instance_file)
     cal_tree = etree.parse(cal_linkbase)
     self.root = tree.getroot()
     self.cal_root = cal_tree.getroot()
Пример #5
0
 def setUp(self):
     instance_file = "tests/assets/abc-20130331.xml"
     pre_linkbase = xbrl.get_linkbase(instance_file, "pre")
     lab_linkbase = xbrl.get_linkbase(instance_file, "lab")
     cal_linkbase = xbrl.get_linkbase(instance_file, "cal")
     tree = etree.parse(instance_file)
     pre_tree = etree.parse(pre_linkbase)
     lab_tree = etree.parse(lab_linkbase)
     cal_tree = etree.parse(cal_linkbase)
     self.root = tree.getroot()
     self.pre_root = pre_tree.getroot()
     self.lab_root = lab_tree.getroot()
     self.cal_root = cal_tree.getroot()
     self.standard_label = "http://www.xbrl.org/2003/role/label"
     self.terse_label = "http://www.xbrl.org/2003/role/terseLabel"
     self.verbose_label = "http://www.xbrl.org/2003/role/verboseLabel"
     self.negated_label = "http://www.xbrl.org/2009/role/negatedLabel"
     self.negated_terse_label = "http://www.xbrl.org/2009/role/negated" \
                                "TerseLabel"
Пример #6
0
 def setUp(self):
     instance_file = "tests/assets/abc-20130331.xml"
     pre_linkbase = xbrl.get_linkbase(instance_file, "pre")
     lab_linkbase = xbrl.get_linkbase(instance_file, "lab")
     cal_linkbase = xbrl.get_linkbase(instance_file, "cal")
     tree = etree.parse(instance_file)
     pre_tree = etree.parse(pre_linkbase)
     lab_tree = etree.parse(lab_linkbase)
     cal_tree = etree.parse(cal_linkbase)
     self.root = tree.getroot()
     self.pre_root = pre_tree.getroot()
     self.lab_root = lab_tree.getroot()
     self.cal_root = cal_tree.getroot()
     self.standard_label = "http://www.xbrl.org/2003/role/label"
     self.terse_label = "http://www.xbrl.org/2003/role/terseLabel"
     self.verbose_label = "http://www.xbrl.org/2003/role/verboseLabel"
     self.negated_label = "http://www.xbrl.org/2009/role/negatedLabel"
     self.negated_terse_label = "http://www.xbrl.org/2009/role/negated" \
                                "TerseLabel"