'Wrong input type raises error'

def test_input_validation(self):

    times = [10, 20]
    with pytest.raises(ValueError):
        Time(times, format='iso', scale='utc')
    with pytest.raises(ValueError):
        Time('2000:001', format='jd', scale='utc')
    with pytest.raises(ValueError):
        Time([50000.0], ['bad'], format='mjd', scale='tai')
    with pytest.raises(ValueError):
        Time(50000.0, 'bad', format='mjd', scale='tai')
    with pytest.raises(ValueError):
        Time('2005-08-04T00:01:02.000Z', scale='tai')
    with pytest.raises(ValueError):
        Time(np.nan, format='jd', scale='utc')
    with pytest.raises(ValueError):
        Time('2000-01-02T03:04:05(TAI)', scale='utc')
    with pytest.raises(ValueError):
        Time('2000-01-02T03:04:05(TAI')
    with pytest.raises(ValueError):
        Time('2000-01-02T03:04:05(UT(NIST)')
