def test_no_output_but_filters():
 jl = bundle_to_joblist(Bundle(Bundle('s1', output='foo'), Bundle('s2', output='bar', filters=[js]), filters=[css]))
 assert (jl['foo'][0][0] == [css])
 assert (jl['foo'][0][1] == ['s1'])
 assert (jl['bar'][0][0] == [js, css])
 assert (jl['bar'][0][1] == ['s2'])

def test_no_output_but_filters ( ) : jl = bundle_to_joblist ( Bundle ( Bundle ( 's1' , output = 'foo' ) , Bundle ( 's2' , output = 'bar' , filters = [ js ] ) , filters = [ css ] ) ) assert ( jl [ 'foo' ] [ 0 ] [ 0 ] == [ css ] ) assert ( jl [ 'foo' ] [ 0 ] [ 1 ] == [ 's1' ] ) assert ( jl [ 'bar' ] [ 0 ] [ 0 ] == [ js , css ] ) assert ( jl [ 'bar' ] [ 0 ] [ 1 ] == [ 's2' ] )
if a container specifies filters .