#NEWLINE# def test_new_way( config ) : #NEWLINE# #INDENT# 'Test creation of a <way> element.' #NEWLINE# O . init_osm_factory ( config ) #NEWLINE# wayid = '42' #NEWLINE# w = O . new_osm_element ( C . WAY , wayid ) #NEWLINE# assert ( w . id == str ( wayid ) ) #NEWLINE# assert ( w [ C . REFERENCES ] == set ( ) ) #NEWLINE# assert ( w [ C . NODES ] == set ( ) )