def test_flat():
 b = Bundle('s1', 'a2', output='foo')
 jl = bundle_to_joblist(b)
 assert (len(jl) == 1)
 assert (jl.keys()[0] == 'foo')
 assert (len(jl['foo']) == 1)
 assert (len(jl['foo'][0][1]) == 2)

def test_flat ( ) : b = Bundle ( 's1' , 'a2' , output = 'foo' ) jl = bundle_to_joblist ( b ) assert ( len ( jl ) == 1 ) assert ( jl . keys ( ) [ 0 ] == 'foo' ) assert ( len ( jl [ 'foo' ] ) == 1 ) assert ( len ( jl [ 'foo' ] [ 0 ] [ 1 ] ) == 2 )
if the bundle structure is already flat .