function testTimberImageFromTimberImage()
{
$post = $this->get_post_with_image();
$image = $post->thumbnail();
$post = new TimberImage($image);
$str = '{{ TimberImage(post).src }}';
$result = Timber::compile_string($str, array('post' => $post));
$this->assertEquals($image->src(), $result);
}