def test_timesArgument(self): args = Arguments("TIMES/CVIN/18/BHET").parse() assert args.times == True
def test_timesArgument_lowercaseWithSpaces(self): args = Arguments(" times /CVIN/18/BHET").parse() assert args.times == True
def test_compactArgument(self): args = Arguments("COMPACT/CVIN/18/BHET").parse() assert args.compact == True
def test_compactArgument_lowercaseWithSpaces(self): args = Arguments(" compact /CVIN/18/BHET").parse() assert args.compact == True
def test_stopNames(self, inString, expected, message): args = Arguments(inString).parse() assert args.stop.code == expected, message
def test_twoStations_chooseFirst(self): args = Arguments("CVIN/18/BHET").parse() assert args.stop.code == "CVIN"
def test_stationOnly(self): args = Arguments("CVIN").parse() assert args.stop.code == "CVIN"
def test_twoLines(self): args = Arguments("CVIN/18/Y").parse() assert "18" in [l.code for l in args.lines] assert "Y" in [l.code for l in args.lines]
def test_oneLine(self): args = Arguments("18").parse() assert "18" in [l.code for l in args.lines]