#NEWLINE# def test_IDNationalIdentityNumberField( self ) : #NEWLINE# #INDENT# error_invalid = [ 'Enter a valid NIK/KTP number' ] #NEWLINE# valid = { #NEWLINE# #INDENT# ' 12.3456.010178 3456 ' : '12.3456.010178.3456' , #NEWLINE# '1234560101783456' : '12.3456.010178.3456' , #NEWLINE# '12.3456.010101.3456' : '12.3456.010101.3456' , #NEWLINE# #UNINDENT# } #NEWLINE# invalid = { #NEWLINE# #INDENT# '12.3456.310278.3456' : error_invalid , #NEWLINE# '00.0000.010101.0000' : self , #NEWLINE# '1234567890123456' : error_invalid , #NEWLINE# 'foo' : error_invalid , #NEWLINE# #UNINDENT# } #NEWLINE# self . assertFieldOutput ( IDNationalIdentityNumberField , valid , invalid )