'Change active states of v2 and v3, check that the results
are as expected'

def test_applied_state_toggle(self):

    self.v2.toggle()
    context = {'check_view_ids': self.View.search([]).ids}
    arch = self.v0.with_context(context).read_combined(['arch'])['arch']
    self.assertEqual(etree.fromstring(arch), E.qweb(E.base(), E.v1()))
    self.v3.toggle()
    context = {'check_view_ids': self.View.search([]).ids}
    arch = self.v0.with_context(context).read_combined(['arch'])['arch']
    self.assertEqual(etree.fromstring(arch), E.qweb(E.base(), E.v1(), E.v3()))
    self.v2.toggle()
    context = {'check_view_ids': self.View.search([]).ids}
    arch = self.v0.with_context(context).read_combined(['arch'])['arch']
    self.assertEqual(etree.fromstring(arch), E.qweb(E.base(), E.v1(), E.v2(), E.v3()))
