'Test to validate that client warnings can be surfaced
@since 2.6.0
@jira_ticket PYTHON-315
@expected_result valid warnings returned
@test_assumptions
- batch_size_warn_threshold_in_kb: 5
@test_category queries:client_warning'

def test_warning_basic(self):

    future = self.session.execute_async(self.warn_batch)
    future.result()
    self.assertEqual(len(future.warnings), 1)
    self.assertRegexpMatches(future.warnings[0], 'Batch.*exceeding.*')
