def test_GOOG_shareholders_equity(self): sec_value = 994.77 doc_path = os.path.join(TEST_DOCS_DIR, 'goog-20120630.xml') xbrl_document = XBRLDocument.gets_XBRL_locally(file_path=doc_path) filing = Filing(filing_date=None, document=xbrl_document, next_filing=None) book_value_per_share = BookValuePerShare.value_from_filing(filing) self.assertAlmostEqual(book_value_per_share, sec_value, places=1)
def test_GOOG_shareholders_equity(self): sec_value = 994.77 doc_path = tests.asset_file_path('goog-20120630.xml') xbrl_document = XBRLDocument.gets_XBRL_locally(file_path=doc_path) filing = Filing(filing_date=None, document=xbrl_document, next_filing=None) book_value_per_share = BookValuePerShare.value_from_filing(filing) self.assertAlmostEqual(book_value_per_share, sec_value, places=1)
def test_appl(self): """value computed from http://www.sec.gov/cgi-bin/viewer?action=view&cik=320193&accession_number=0001193125-13-022339&xbrl_type=v#. """ sec_value = 135.6 doc_path = os.path.join(TEST_DOCS_DIR, "aapl-20121229.xml") xbrl_document = XBRLDocument.gets_XBRL_locally(file_path=doc_path) filing = Filing(filing_date=None, document=xbrl_document, next_filing=None) book_value_per_share = BookValuePerShare.value_from_filing(filing) self.assertAlmostEqual(book_value_per_share, sec_value, places=1)
def test_appl(self): '''value computed from http://www.sec.gov/cgi-bin/viewer?action=view&cik=320193&accession_number=0001193125-13-022339&xbrl_type=v#. ''' sec_value = 135.6 doc_path = tests.asset_file_path('aapl-20121229.xml') xbrl_document = XBRLDocument.gets_XBRL_locally(file_path=doc_path) filing = Filing(filing_date=None, document=xbrl_document, next_filing=None) book_value_per_share = BookValuePerShare.value_from_filing(filing) self.assertAlmostEqual(book_value_per_share, sec_value, places=1)
def setUp(self): test_filing_path = os.path.join(TEST_DOCS_DIR, 'aapl-20121229.xml') self.xbrl_doc = XBRLDocument.gets_XBRL_locally(file_path=test_filing_path)
def setUp(self): test_filing_path = tests.asset_file_path('aapl-20121229.xml') self.xbrl_doc = XBRLDocument.gets_XBRL_locally(file_path=test_filing_path)