def it_contructs_a_series_object_from_a_plot_element(self, call_fixture): ser, SeriesCls_, series_ = call_fixture series = _SeriesFactory(ser) SeriesCls_.assert_called_once_with(ser) assert series is series_