func buildValidTestData() flightsToSearch {
	return flightsToSearch{
		minimumStay:           3,
		maximumStay:           5,
		earliestDepartureDate: utils.RawDateNow(1),
		latestDepartureDate:   utils.RawDateNow(3),
		startAirports:         []string{"INN", "VIE"},
		destAirports:          []string{"PEK", "PVG"},
	}
}
func TestVerifyDatesLatestBeforeEarliestDate(t *testing.T) {
	testData := buildValidTestData()
	testData.earliestDepartureDate = utils.RawDateNow(5)

	error := verifyDates(&testData)
	expectedMessage := fmt.Sprintf("the latestDepartureDate (%v) is temporally before the earliestDepartureDate (%v) !</br>", testData.latestDepartureDate, testData.earliestDepartureDate)

	utils.FailIfStringDoesntHaveSubstring(t, error, expectedMessage)
}