def test_scalar_info():
 c = time.Time('2000:001')
 cinfo = c.info(out=None)
 assert (cinfo['n_bad'] == 0)
 assert ('length' not in cinfo)

def test_scalar_info ( ) : c = time . Time ( '2000:001' ) cinfo = c . info ( out = None ) assert ( cinfo [ 'n_bad' ] == 0 ) assert ( 'length' not in cinfo )
make sure info works with scalar values .