def test_thumbnails(self):
     result = pygallery.read_folder(self.path)
     pygallery.make_thumbnails(self.path, result)
     expected = ['pic-true.jpg']
     thumb_path = os.path.join(self.path, 'thumbnail')
     thumb_result = pygallery.read_folder(thumb_path)
     self.assertEqual(expected, thumb_result)
     pygallery.clean_thumbnail_dir(self.path)
     self.assertFalse(os.path.isdir(thumb_path))
 def test_indexhtml_exists(self):
     result = pygallery.read_folder(self.path)
     pygallery.make_thumbnails(self.path, result)
     pygallery.generate_indexhtml(self.path, result)
     self.assertTrue(os.path.isfile(os.path.join(self.path, "index.html")))
 def test_read_folder_contents(self):
     expected = ['pic-true.jpg']
     result = pygallery.read_folder(self.path)
     self.assertEqual(result, expected)