#NEWLINE# def test_edges_generates_each_edge_exactly_once( self ) : #NEWLINE# #INDENT# known_creator = pmz . SUPERSHAPES_DICT [ 'Square' ] #NEWLINE# some_index = ( 1 , 2 ) #NEWLINE# grid = generic_grid ( supershape = known_creator , neighborhood_center_index = some_index ) #NEWLINE# edges_spec = list ( ) #NEWLINE# for shape in grid . shapes ( ) : #NEWLINE# #INDENT# for ( n_index , edge ) in shape . edges ( ) : #NEWLINE# #INDENT# if ( edge not in edges_spec ) : #NEWLINE# #INDENT# edges_spec . append ( edge ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# edge_count_spec = 16 #NEWLINE# self . assertEqual ( len ( self ) , edge_count_spec ) #NEWLINE# edges = tuple ( grid . edges ( ) ) #NEWLINE# _assertCountEqual ( self , edges , edges_spec )