def test_numberpattern_repr():
 format = u'\xa4#,##0.00;(\xa4#,##0.00)'
 np = numbers.parse_pattern(format)
 assert (repr(format) in repr(np))

def test_numberpattern_repr ( ) : format = u'\xa4#,##0.00;(\xa4#,##0.00)' np = numbers . parse_pattern ( format ) assert ( repr ( format ) in repr ( np ) )
repr() outputs the pattern string .