Пример #1
0
 def test_create_album(self):
     PHOTOS_ROOT_DIR = getattr(settings, 'PHOTOS_ROOT_DIR', '/')
     album = Album(PHOTOS_ROOT_DIR, '/')
     self.assertEquals(album.get_pictures(), [])
     self.assertEquals(len(album.get_albums()), 2)