def test_sample(): image_source = tatami_source() assert image_source.sample(1).duration == pytest.approx(1)