Is there a library/framework that enables me to do unit testing to Ansible playbooks?

In Chef’s world, there exists ChefSpec, which basically enables writing and running of ‘unit-tests’ against the Chef Cookbooks.

Is there a counterpart in Ansible community? (If not, how hard to write one as an engineering exercise?)

Thanks,
Sean

if you look at test/ in the repo you'll see we use ansible itself to
test, mostly centered around the assert module.

To add to Brian’s response, here is a link to the documentation where a few strategies are enumerated along with example http://docs.ansible.com/test_strategies.html