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