'Tests that batch deletes  with multiple queries and throw proper LWTException when they are are not all applicable
@since 3.1
@jira_ticket PYTHON-432
@expected_result If one delete clause doesn\'t exist all should fail.
@test_category object_mapper'

@unittest.skipUnless((PROTOCOL_VERSION >= 2), 'only    runs    against    the    cql3    protocol    v2.0')
def test_batch_delete_mixed(self):

    m = TestIfExistsModel2.create(id=3, count=8, text='123456789')
    with self.assertRaises(LWTException) as assertion:
        with BatchQuery() as b:
            m.batch(b).if_exists().delete()
            n = TestIfExistsModel2(id=3, count=42, text='1111111')
            n.batch(b).if_exists().delete()
    self.assertEqual(assertion.exception.existing.get('[applied]'), False)
    q = TestIfExistsModel2.objects(id=3, count=8)
    self.assertEqual(len(q), 1)
