def test_no_output():
 assert_raises(BundleError, bundle_to_joblist, Bundle('s1', 's2'))
 bundle_to_joblist(Bundle('s1', Bundle('s2'), output='foo'))
 bundle_to_joblist(Bundle(Bundle('s1', output='foo'), Bundle('s2', output='bar')))
 assert_raises(BundleError, bundle_to_joblist, Bundle(Bundle('s1', output='foo'), Bundle('s2')))

def test_no_output ( ) : assert_raises ( BundleError , bundle_to_joblist , Bundle ( 's1' , 's2' ) ) bundle_to_joblist ( Bundle ( 's1' , Bundle ( 's2' ) , output = 'foo' ) ) bundle_to_joblist ( Bundle ( Bundle ( 's1' , output = 'foo' ) , Bundle ( 's2' , output = 'bar' ) ) ) assert_raises ( BundleError , bundle_to_joblist , Bundle ( Bundle ( 's1' , output = 'foo' ) , Bundle ( 's2' ) ) )
each file in a bundle needs an output target if it is supposed to be merged .