@with_setup(reset)
def test_duplicate():
 b1 = Bundle()
 b2 = Bundle()
 register('foo', b1)
 register('foo', b1)
 assert (len(_REGISTRY) == 1)
 assert_raises(RegistryError, register, 'foo', b2)
 assert_raises(RegistryError, register, 'foo', 's1', 's2', 's3')

@ with_setup ( reset ) def test_duplicate ( ) : b1 = Bundle ( ) b2 = Bundle ( ) register ( 'foo' , b1 ) register ( 'foo' , b1 ) assert ( len ( _REGISTRY ) == 1 ) assert_raises ( RegistryError , register , 'foo' , b2 ) assert_raises ( RegistryError , register , 'foo' , 's1' , 's2' , 's3' )
test name clashes .