def test_isiterable():
 t1 = Time.now()
 assert (not isiterable(t1))
 t2 = Time(['1999-01-01 00:00:00.123456789', '2010-01-01 00:00:00'], format='iso', scale='utc')
 assert isiterable(t2)

def test_isiterable ( ) : t1 = Time . now ( ) assert ( not isiterable ( t1 ) ) t2 = Time ( [ '1999-01-01 00:00:00.123456789' , '2010-01-01 00:00:00' ] , format = 'iso' , scale = 'utc' ) assert isiterable ( t2 )
ensure that scalar time instances are not reported as iterable by the isiterable utility .