Checking if a vertex belongs to a vertex group in python

I'm trying to check whether or not a vertex belongs to a particular group, I've seen a couple methods, I'm wondering why the following does not move any vertices. for v in ob.data.vertices: if v.