"""Tests regarding instantiating classes"""

from pycounter import report


def test_counter_journal():
    journal = report.CounterJournal()
    assert journal.issn == u""

@@ -67,16 +67,32 @@
  report%0A
+import datetime%0A
 %0A%0Adef te
@@ -182,8 +182,385 @@
  == u%22%22%0A
+%0A%0Adef test_report_gaps():%0A    journal = report.CounterJournal(%0A        period=(datetime.date(2018, 1, 1), datetime.date(2018, 3, 1)),%0A        month_data=%5B(datetime.date(2018, 1, 1), 50),%0A                    (datetime.date(2018, 3, 1), 99),%0A                    %5D%0A    )%0A%0A    output_data = journal.as_generic()%0A    assert output_data%5B11%5D == '0'%0A    assert output_data%5B12%5D == '99'%0A

add test for gaps in stats being output correctly