def test_to_csv_when_given_no_output_returns_none(): assert output_formats_module.to_csv(None) is None
def test_to_csv_formats_data_to_csv_format(): formatted_output = output_formats_module.to_csv(TEST_DATA) assert_csv_texts_are_equal(formatted_output, CSV_OUTPUT)