<s> import OpenPNM <EOL> import scipy as sp <EOL> class PoreTopologyTest : <EOL> def setup_class ( self ) : <EOL> self . net = OpenPNM . Network . Cubic ( shape = [ <NUM_LIT:3> , <NUM_LIT:3> , <NUM_LIT:3> ] , spacing = <NUM_LIT:1> ) <EOL> def test_get_subscripts ( self ) : <EOL> f = OpenPNM . Network . models . pore_topology . get_subscripts <EOL> self . net . models . add ( propname = '<STR_LIT>' , <EOL> shape = [ <NUM_LIT:3> , <NUM_LIT:3> , <NUM_LIT:3> ] , <EOL> model = f ) <EOL> assert '<STR_LIT>' in self . net . keys ( ) <EOL> assert sp . shape ( self . net [ '<STR_LIT>' ] ) == ( <NUM_LIT> , <NUM_LIT:3> ) <EOL> def test_get_coords ( self ) : <EOL> f = OpenPNM . Network . models . pore_topology . adjust_spacing <EOL> self . net . models . add ( propname = '<STR_LIT>' , <EOL> model = f , <EOL> new_spacing = <NUM_LIT:2> ) <EOL> assert '<STR_LIT>' in self . net . keys ( ) <EOL> a = sp . amax ( self . net [ '<STR_LIT>' ] ) <EOL> assert sp . amax ( self . net [ '<STR_LIT>' ] ) == <NUM_LIT:2> * a </s>
