Example #1
0
 def test_timesArgument(self):
     args = Arguments("TIMES/CVIN/18/BHET").parse()
     assert args.times == True
Example #2
0
 def test_timesArgument_lowercaseWithSpaces(self):
     args = Arguments(" times /CVIN/18/BHET").parse()
     assert args.times == True
Example #3
0
 def test_compactArgument(self):
     args = Arguments("COMPACT/CVIN/18/BHET").parse()
     assert args.compact == True
Example #4
0
 def test_compactArgument_lowercaseWithSpaces(self):
     args = Arguments(" compact /CVIN/18/BHET").parse()
     assert args.compact == True
Example #5
0
 def test_stopNames(self, inString, expected, message):
     args = Arguments(inString).parse()
     assert args.stop.code == expected, message
Example #6
0
 def test_twoStations_chooseFirst(self):
     args = Arguments("CVIN/18/BHET").parse()
     assert args.stop.code == "CVIN"
Example #7
0
 def test_stationOnly(self):
     args = Arguments("CVIN").parse()
     assert args.stop.code == "CVIN"
Example #8
0
    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]
Example #9
0
 def test_oneLine(self):
     args = Arguments("18").parse()
     assert "18" in [l.code for l in args.lines]