Switch if to elif in test_frame.test_to_csv_moar._do_test
Merge pull request #7488 from dsm054/fix_test_moar_elif

Switch if to elif in test_frame.test_to_csv_moar._do_test