def test_read_types():
 t1 = ascii.read('a b c\n1 2 3\n4 5 6', format='fast_basic', guess=False)
 t2 = ascii.read(StringIO('a b c\n1 2 3\n4 5 6'), format='fast_basic', guess=False)
 t3 = ascii.read(['a b c', '1 2 3', '4 5 6'], format='fast_basic', guess=False)
 assert_table_equal(t1, t2)
 assert_table_equal(t2, t3)

def test_read_types ( ) : t1 = ascii . read ( 'a b c\n1 2 3\n4 5 6' , format = 'fast_basic' , guess = False ) t2 = ascii . read ( StringIO ( 'a b c\n1 2 3\n4 5 6' ) , format = 'fast_basic' , guess = False ) t3 = ascii . read ( [ 'a b c' , '1 2 3' , '4 5 6' ] , format = 'fast_basic' , guess = False ) assert_table_equal ( t1 , t2 ) assert_table_equal ( t2 , t3 )
make sure that the read() function takes filenames .