Well render_part('body.html') will give you html so your test is broken.