def _check_table(p, k, exp_nrow):
dt_att = getattr(p, k)<EOL>dt_key = p[k]<EOL>assert all((dt_att == dt_key).all())<EOL>obs_nrow = len(dt_att.index)<EOL>assert exp_nrow == obs_nrow, "<STR_LIT>".format(exp_nrow, obs_nrow)<EOL>
Validate expectations about a particular table attribute on Project.

:param peppy.Project p: Project to validate
:param str k: key/attribute that references the table of interest
:param int exp_nrow: expected number of rows in the table