def test_first_block_las(): line = 'LAsort -v -a -q foo.1.foo.1.C0' result = f.first_block_las(line) eq_(result, 1) line = 'LAsort foo.1.foo.1.C0' result = f.first_block_las(line) eq_(result, 1) # We expect HPC.daligner to use block numbers always. line = 'LAsort -v -a -q foo.foo.C0' assert_raises(Exception, f.first_block_las, line) line = 'LAsort foo.foo.C0' assert_raises(Exception, f.first_block_las, line)