'Deleting a post also removes the flags on that post.'

def test_delete_post_removes_flag(self):

    p = PostFactory()
    u = UserFactory()
    FlaggedObject.objects.create(status=0, content_object=p, reason='language', creator_id=u.id)
    eq_(1, FlaggedObject.objects.count())
    p.delete()
    eq_(0, FlaggedObject.objects.count())
