def test_epicurve_plot_year(): data = _test_data() curve, fig, ax = epicurve.epicurve_plot(data, 'pltdate', 'y') assert len(curve) == 2 assert curve['count'].sum() == 6