def test_two_pictures(self):
     _add_media_to_dir([{
         'url': 'http://localhost/picture.png',
         'title': 'A picture for test',
         'thumbnail_url': 'https://localhost/thumbnails/picture.png',
     }] * 2)
     self.assertItemsEqual(self.directory, [
         ('A picture for test', 'http://localhost/picture.png'),
     ] * 2)
 def test_empty_media_list(self):
     _add_media_to_dir([])
     self.assertItemsEqual(self.directory, [])