'Try to draw a number from two transactions.'

def test_ir_sequence_draw_twice(self):

    with environment() as env0:
        with environment() as env1:
            n0 = env0['ir.sequence'].next_by_code('test_sequence_type')
            self.assertTrue(n0)
            n1 = env1['ir.sequence'].next_by_code('test_sequence_type')
            self.assertTrue(n1)
