def test_out_with_nonstring_null():
 table = Table([[3]], masked=True)
 out = StringIO()
 ascii.write(table, out, Writer=Ipac, fill_values=[(masked, (-99999))])
 expected_out = '|  col0|\n|  long|\n|      |\n|-99999|\n      3\n'
 assert (out.getvalue().strip().splitlines() == expected_out.splitlines())

def test_out_with_nonstring_null ( ) : table = Table ( [ [ 3 ] ] , masked = True ) out = StringIO ( ) ascii . write ( table , out , Writer = Ipac , fill_values = [ ( masked , ( - 99999 ) ) ] ) expected_out = '|  col0|\n|  long|\n|      |\n|-99999|\n      3\n' assert ( out . getvalue ( ) . strip ( ) . splitlines ( ) == expected_out . splitlines ( ) )
test a fill value .