function testTimberImageFromAttachment()
{
$iid = self::get_image_attachment();
$image = new TimberImage($iid);
$post = get_post($iid);
$str = '{{ TimberImage(post).src }}';
$result = Timber::compile_string($str, array('post' => $post));
$this->assertEquals($image->src(), $result);
}