Exemple #1
0
def test_radar_query_chain():
    """Test that radar query method calls can be chained."""
    dt = datetime(2015, 6, 15, 12, 0, 0)
    q = RadarQuery().stations('KFTG').time(dt)
    query = str(q)
    assert 'stn=KFTG' in query
    assert 'time=2015-06-15T12' in query
Exemple #2
0
def test_radar_query_chain():
    dt = datetime(2015, 6, 15, 12, 0, 0)
    q = RadarQuery().stations('KFTG').time(dt)
    query = str(q)
    assert 'stn=KFTG' in query
    assert 'time=2015-06-15T12' in query
Exemple #3
0
def test_radar_query_multiple_stations():
    q = RadarQuery()
    q.stations('KTLX', 'KFTG')
    assert str(q) == 'stn=KTLX&stn=KFTG'
Exemple #4
0
def test_radar_query_one_station():
    q = RadarQuery()
    q.stations('KTLX')
    assert str(q) == 'stn=KTLX'
Exemple #5
0
 def test_multiple_stations(self):
     q = RadarQuery()
     q.stations('KTLX', 'KFTG')
     eq_(str(q), 'stn=KTLX&stn=KFTG')
Exemple #6
0
 def test_one_station(self):
     q = RadarQuery()
     q.stations('KTLX')
     eq_(str(q), 'stn=KTLX')
Exemple #7
0
def test_radar_query_multiple_stations():
    """Test that radar query properly works when given multiple stations."""
    q = RadarQuery()
    q.stations('KTLX', 'KFTG')
    assert str(q) == 'stn=KTLX&stn=KFTG'
Exemple #8
0
 def test_multiple_stations(self):
     q = RadarQuery()
     q.stations('KTLX', 'KFTG')
     eq_(str(q), 'stn=KTLX&stn=KFTG')
Exemple #9
0
def test_radar_query_one_station():
    """Test that radar query properly works when given a single station."""
    q = RadarQuery()
    q.stations('KTLX')
    assert str(q) == 'stn=KTLX'
Exemple #10
0
 def test_one_station(self):
     q = RadarQuery()
     q.stations('KTLX')
     eq_(str(q), 'stn=KTLX')
Exemple #11
0
def test_radar_query_multiple_stations():
    """Test that radar query properly works when given multiple stations."""
    q = RadarQuery()
    q.stations('KTLX', 'KFTG')
    assert str(q) == 'stn=KTLX&stn=KFTG'
Exemple #12
0
def test_radar_query_one_station():
    """Test that radar query properly works when given a single station."""
    q = RadarQuery()
    q.stations('KTLX')
    assert str(q) == 'stn=KTLX'
Exemple #13
0
def test_radar_query_multiple_stations():
    q = RadarQuery()
    q.stations('KTLX', 'KFTG')
    assert str(q) == 'stn=KTLX&stn=KFTG'
Exemple #14
0
def test_radar_query_one_station():
    q = RadarQuery()
    q.stations('KTLX')
    assert str(q) == 'stn=KTLX'