def test_date_is_sanitized_when_changed(self): aapl = Filing(cik_lookup='aapl', filing_type=FilingType.FILING_10Q, count=10, start_date='20150101') assert aapl.start_date == '20150101' aapl.start_date = datetime.datetime(2010, 1, 1) assert aapl.start_date == datetime.datetime(2010, 1, 1) assert aapl.params['datea'] == '20100101'
def test_date_is_sanitized_when_changed(self): aapl = Filing(cik_lookup="aapl", filing_type=FilingType.FILING_10Q, count=10, start_date="20150101") assert aapl.start_date == "20150101" aapl.start_date = datetime.datetime(2010, 1, 1) assert aapl.start_date == datetime.datetime(2010, 1, 1) assert aapl.params["datea"] == "20100101"