def get_thumbnail(src_path, size): return thumb.get(file(src_path), width=size[0], height=size[1])
def test_odt_file(self): t = thumb.get(file("files/test.odt")) self.assertDimensions(t)
def test_odt_stream(self): t = thumb.get(StringIO(file("files/test.odt").read()), file_name="test.odt") self.assertDimensions(t)
def test_png_file(self): t = thumb.get(file("files/test.png")) self.assertDimensions(t)
def test_avi_file(self): t = thumb.get(file("files/test.avi")) self.assertDimensions(t)
def test_odt_stream(self): t = thumb.get(StringIO(file('files/test.odt').read()), file_name='test.odt') self.assertDimensions(t)
def test_pdf(self): t = thumb.get("files/test.pdf") self.assertDimensions(t)
def test_odt_file(self): t = thumb.get(file('files/test.odt')) self.assertDimensions(t)
def test_avi_file(self): t = thumb.get(file('files/test.avi')) self.assertDimensions(t)
def test_png_file(self): t = thumb.get(file('files/test.png')) self.assertDimensions(t)
def test_pdf(self): t = thumb.get('files/test.pdf') self.assertDimensions(t)