Пример #1
0
 def test_insert_labels(self):
     calcs = xbrl.get_calcs(self.cal_root)
     log = xbrl.calc_values(self.root, calcs)
     label_log = xbrl.insert_labels(self.lab_root, log)
     debt = [
         "http://www.example.com/role/DebtLongTermDebtDetails",
         "Long-term Debt, Excluding Current Maturities",
         "us-gaap_LongTermDebtNoncurrent", "I2013Q1",
         Decimal("2989"),
         Decimal("11")
     ]
     self.assertIn(debt, label_log)
     self.assertEqual(len(label_log), 23)
Пример #2
0
 def test_insert_labels(self):
     calcs = xbrl.get_calcs(self.cal_root)
     log = xbrl.calc_values(self.root, calcs)
     label_log = xbrl.insert_labels(self.lab_root, log)
     debt = [
         "http://www.example.com/role/DebtLongTermDebtDetails",
         "Long-term Debt, Excluding Current Maturities",
         "us-gaap_LongTermDebtNoncurrent",
         "I2013Q1",
         Decimal("2989"),
         Decimal("11")
     ]
     self.assertIn(debt, label_log)
     self.assertEqual(len(label_log), 23)
Пример #3
0
    def test_calc_values(self):
        debts = [[
            "http://www.example.com/role/DebtLongTermDebtDetails",
            "us-gaap_LongTermDebtNoncurrent",
            "I2013Q1",
            Decimal("2989"),
            Decimal("11")
        ], [
            "http://www.example.com/role/DebtAdditionalInformationDetails",
            "us-gaap_DebtWeightedAverageInterestRate",
            "I2013Q1",
            Decimal("0.9843"),
            Decimal("0.05734")
        ]]

        calcs = xbrl.get_calcs(self.cal_root)
        log = xbrl.calc_values(self.root, calcs)
        for debt in debts:
            self.assertIn(debt, log)
        self.assertEqual(len(log), 23)
Пример #4
0
    def test_calc_values(self):
        debts = [
            [
                "http://www.example.com/role/DebtLongTermDebtDetails",
                "us-gaap_LongTermDebtNoncurrent", "I2013Q1",
                Decimal("2989"),
                Decimal("11")
            ],
            [
                "http://www.example.com/role/DebtAdditionalInformationDetails",
                "us-gaap_DebtWeightedAverageInterestRate", "I2013Q1",
                Decimal("0.9843"),
                Decimal("0.05734")
            ]
        ]

        calcs = xbrl.get_calcs(self.cal_root)
        log = xbrl.calc_values(self.root, calcs)
        for debt in debts:
            self.assertIn(debt, log)
        self.assertEqual(len(log), 23)