Example #1
0
def test_repr():
    qr = QueryResponse([])
    assert "Start Time End Time  Source Instrument   Type" in repr(qr)
Example #2
0
def test_str():
    qr = QueryResponse([])
    assert str(qr) == ('Start Time End Time Source Instrument Type\n'
                       '---------- -------- ------ ---------- ----')
Example #3
0
def test_show(mock_build_client):
    qr = QueryResponse([])
    qrshow = qr.show('Start Time', 'Source', 'Type')
    assert str(qrshow) == ('Start Time Source Type\n' '---------- ------ ----')
Example #4
0
def test_show(mock_build_client):
    qr = QueryResponse([])
    qrshow = qr.show('Start Time', 'Source', 'Type')
    assert str(qrshow) == '<No columns>'
Example #5
0
def test_repr(mock_build_client):
    qr = QueryResponse([])
    assert '<No columns>' in repr(qr)
Example #6
0
def test_str(mock_build_client):
    qr = QueryResponse([])
    assert str(qr) == '<No columns>'