'Check for v2 auth_provider compliance'

def test_v2_auth_provider(self):

    bad_auth_provider = (lambda x: {'username': 'foo', 'password': 'bar'})
    self.assertRaises(TypeError, Cluster, auth_provider=bad_auth_provider, protocol_version=2)
    c = Cluster(protocol_version=2)
    self.assertRaises(TypeError, setattr, c, 'auth_provider', bad_auth_provider)
