def test_info_html_table(self):
        from jicbioimage.core.image import MicroscopyImage
        microscopy_image = MicroscopyImage('dummy.tif',
            dict(series=0, channel=1, zslice=2, timepoint=3))
        self.assertEqual(
            microscopy_image.__info_html_table__(30).strip().replace(' ', ''),
'''
<table>
    <tr>
        <th>Index</th>
        <th>Series</th>
        <th>Channel</th>
        <th>Z-slice</th>
        <th>Time point</th>
    </tr>
    <tr>
        <td>30</td>
        <td>0</td>
        <td>1</td>
        <td>2</td>
        <td>3</td>
    </tr>
</table>
'''.strip().replace(' ', '')
        ) 
 def test_in_zstack(self):
     from jicbioimage.core.image import MicroscopyImage
     microscopy_image = MicroscopyImage('dummy.tif',
         dict(series=0, channel=1, zslice=2, timepoint=3))
     self.assertTrue(microscopy_image.in_zstack(s=0, c=1, t=3))
     self.assertFalse(microscopy_image.in_zstack(s=5, c=1, t=3))
 def test_repr_png_return_type(self):
     from jicbioimage.core.image import MicroscopyImage
     fpath = os.path.join(DATA_DIR, 'tjelvar.png')
     microscopy_image = MicroscopyImage(fpath,
         dict(series=0, channel=0, zslice=0, timepoint=0))
     self.assertEqual(type(microscopy_image._repr_png_()), bytes)