Commits

Mikhail Korobov  committed 0a4f64c

Better docs about testing.

  • Participants
  • Parent commits 0e89611

Comments (0)

Files changed (10)

File docs/_build/doctrees/environment.pickle

Binary file modified.

File docs/_build/doctrees/index.doctree

Binary file modified.

File docs/_build/html/_sources/index.txt

 ===================
 	
 .. automodule:: photo_albums.test_utils
-	:show-inheritance:
-	:members:
-	:undoc-members:
+    :show-inheritance:
+    :members:
+    :undoc-members:
 	
 Bugs
 ====

File docs/_build/html/genindex.html

 
    <h1 id="index">Index</h1>
 
-   <a href="#A"><strong>A</strong></a> | <a href="#C"><strong>C</strong></a> | <a href="#D"><strong>D</strong></a> | <a href="#E"><strong>E</strong></a> | <a href="#P"><strong>P</strong></a> | <a href="#S"><strong>S</strong></a> | <a href="#T"><strong>T</strong></a> | <a href="#U"><strong>U</strong></a> 
+   <a href="#A"><strong>A</strong></a> | <a href="#C"><strong>C</strong></a> | <a href="#D"><strong>D</strong></a> | <a href="#E"><strong>E</strong></a> | <a href="#F"><strong>F</strong></a> | <a href="#I"><strong>I</strong></a> | <a href="#P"><strong>P</strong></a> | <a href="#S"><strong>S</strong></a> | <a href="#T"><strong>T</strong></a> | <a href="#U"><strong>U</strong></a> 
 
    <hr />
 
 <table width="100%" class="indextable"><tr><td width="33%" valign="top">
 <dl>
 
-<dt><a href="index.html#photo_albums.test_utils.AlbumTest">AlbumTest (class in photo_albums.test_utils)</a></dt></dl></td><td width="33%" valign="top"><dl>
+<dt><a href="index.html#photo_albums.test_utils.AlbumTest.album_for_id">album_for_id (photo_albums.test_utils.AlbumTest attribute)</a></dt>
+<dt><a href="index.html#photo_albums.test_utils.AlbumTest.album_site">album_site (photo_albums.test_utils.AlbumTest attribute)</a></dt></dl></td><td width="33%" valign="top"><dl>
+<dt><a href="index.html#photo_albums.test_utils.AlbumTest">AlbumTest (class in photo_albums.test_utils)</a></dt>
 </dl></td></tr></table>
 
 <h2 id="C">C</h2>
 
 <dt><a href="index.html#photo_albums.views.edit_album">edit_album (in module photo_albums.views)</a></dt>
 <dt><a href="index.html#photo_albums.views.edit_image">edit_image (in module photo_albums.views)</a></dt></dl></td><td width="33%" valign="top"><dl>
+<dt><a href="index.html#photo_albums.test_utils.AlbumTest.excluded_views">excluded_views (photo_albums.test_utils.AlbumTest attribute)</a></dt>
+</dl></td></tr></table>
+
+<h2 id="F">F</h2>
+<table width="100%" class="indextable"><tr><td width="33%" valign="top">
+<dl>
+
+<dt><a href="index.html#photo_albums.test_utils.AlbumTest.fixtures">fixtures (photo_albums.test_utils.AlbumTest attribute)</a></dt></dl></td><td width="33%" valign="top"><dl>
+</dl></td></tr></table>
+
+<h2 id="I">I</h2>
+<table width="100%" class="indextable"><tr><td width="33%" valign="top">
+<dl>
+
+<dt><a href="index.html#photo_albums.test_utils.AlbumTest.image2_in_album_id">image2_in_album_id (photo_albums.test_utils.AlbumTest attribute)</a></dt>
+<dt><a href="index.html#photo_albums.test_utils.AlbumTest.image_in_album_id">image_in_album_id (photo_albums.test_utils.AlbumTest attribute)</a></dt></dl></td><td width="33%" valign="top"><dl>
+<dt><a href="index.html#photo_albums.test_utils.AlbumTest.image_in_other_album_id">image_in_other_album_id (photo_albums.test_utils.AlbumTest attribute)</a></dt>
 </dl></td></tr></table>
 
 <h2 id="P">P</h2>
 <table width="100%" class="indextable"><tr><td width="33%" valign="top">
 <dl>
 
+<dt><a href="index.html#photo_albums.test_utils.AlbumTest.password">password (photo_albums.test_utils.AlbumTest attribute)</a></dt>
 <dt><a href="index.html#module-photo_albums.test_utils">photo_albums.test_utils (module)</a></dt>
-<dt><a href="index.html#module-photo_albums.urls">photo_albums.urls (module)</a></dt>
-<dt><a href="index.html#module-photo_albums.views">photo_albums.views (module)</a></dt></dl></td><td width="33%" valign="top"><dl>
+<dt><a href="index.html#module-photo_albums.urls">photo_albums.urls (module)</a></dt></dl></td><td width="33%" valign="top"><dl>
+<dt><a href="index.html#module-photo_albums.views">photo_albums.views (module)</a></dt>
 <dt><a href="index.html#photo_albums.urls.PhotoAlbumSite">PhotoAlbumSite (class in photo_albums.urls)</a></dt>
 </dl></td></tr></table>
 
 
 <dt><a href="index.html#photo_albums.views.upload_images">upload_images (in module photo_albums.views)</a></dt>
 <dt><a href="index.html#photo_albums.views.upload_main_image">upload_main_image (in module photo_albums.views)</a></dt></dl></td><td width="33%" valign="top"><dl>
+<dt><a href="index.html#photo_albums.test_utils.AlbumTest.username">username (photo_albums.test_utils.AlbumTest attribute)</a></dt>
 </dl></td></tr></table>
 
 

File docs/_build/html/index.html

 <div class="section" id="module-photo_albums.views">
 <h3>Views<a class="headerlink" href="#module-photo_albums.views" title="Permalink to this headline">¶</a></h3>
 <p>Views used by PhotoAlbumSite.</p>
+<dl class="function">
+<dt id="photo_albums.views.show_album">
+<tt class="descclassname">photo_albums.views.</tt><tt class="descname">show_album</tt><big>(</big><em>request</em>, <em>object_id</em>, <em>album_site</em>, <em>template_name='show_album.html'</em><big>)</big><a class="headerlink" href="#photo_albums.views.show_album" title="Permalink to this definition">¶</a></dt>
+<dd>Show album for object using show_album.html template</dd></dl>
+
+<dl class="function">
+<dt id="photo_albums.views.show_image">
+<tt class="descclassname">photo_albums.views.</tt><tt class="descname">show_image</tt><big>(</big><em>request</em>, <em>object_id</em>, <em>image_id</em>, <em>album_site</em><big>)</big><a class="headerlink" href="#photo_albums.views.show_image" title="Permalink to this definition">¶</a></dt>
+<dd>Show one image</dd></dl>
+
 <dl class="attribute">
 <dt id="photo_albums.views.clear_main_image">
 <tt class="descclassname">photo_albums.views.</tt><tt class="descname">clear_main_image</tt><a class="headerlink" href="#photo_albums.views.clear_main_image" title="Permalink to this definition">¶</a></dt>
 <tt class="descclassname">photo_albums.views.</tt><tt class="descname">set_as_main_image</tt><a class="headerlink" href="#photo_albums.views.set_as_main_image" title="Permalink to this definition">¶</a></dt>
 <dd>Mark image as main and redirect to <tt class="docutils literal"><span class="pre">show_image</span></tt> view</dd></dl>
 
-<dl class="function">
-<dt id="photo_albums.views.show_album">
-<tt class="descclassname">photo_albums.views.</tt><tt class="descname">show_album</tt><big>(</big><em>request</em>, <em>object_id</em>, <em>album_site</em>, <em>template_name='show_album.html'</em><big>)</big><a class="headerlink" href="#photo_albums.views.show_album" title="Permalink to this definition">¶</a></dt>
-<dd>Show album for object using show_album.html template</dd></dl>
-
-<dl class="function">
-<dt id="photo_albums.views.show_image">
-<tt class="descclassname">photo_albums.views.</tt><tt class="descname">show_image</tt><big>(</big><em>request</em>, <em>object_id</em>, <em>image_id</em>, <em>album_site</em><big>)</big><a class="headerlink" href="#photo_albums.views.show_image" title="Permalink to this definition">¶</a></dt>
-<dd>Show one image</dd></dl>
-
 <dl class="attribute">
 <dt id="photo_albums.views.upload_images">
 <tt class="descclassname">photo_albums.views.</tt><tt class="descname">upload_images</tt><a class="headerlink" href="#photo_albums.views.upload_images" title="Permalink to this definition">¶</a></dt>
 <tt class="descname">test_reorder</tt><big>(</big><big>)</big><a class="headerlink" href="#photo_albums.test_utils.AlbumTest.test_reorder" title="Permalink to this definition">¶</a></dt>
 <dd></dd></dl>
 
+<dl class="attribute">
+<dt id="photo_albums.test_utils.AlbumTest.album_for_id">
+<tt class="descname">album_for_id</tt><a class="headerlink" href="#photo_albums.test_utils.AlbumTest.album_for_id" title="Permalink to this definition">¶</a></dt>
+<dd>object id (or slug) for which album is attached to</dd></dl>
+
+<dl class="attribute">
+<dt id="photo_albums.test_utils.AlbumTest.album_site">
+<tt class="descname">album_site</tt><a class="headerlink" href="#photo_albums.test_utils.AlbumTest.album_site" title="Permalink to this definition">¶</a></dt>
+<dd><tt class="docutils literal"><span class="pre">PhotoAlbumSite</span></tt> instance to be tested</dd></dl>
+
+<dl class="attribute">
+<dt id="photo_albums.test_utils.AlbumTest.excluded_views">
+<tt class="descname">excluded_views</tt><a class="headerlink" href="#photo_albums.test_utils.AlbumTest.excluded_views" title="Permalink to this definition">¶</a></dt>
+<dd>a list of names of excluded views. Excluded views won&#8217;t be tested.</dd></dl>
+
+<dl class="attribute">
+<dt id="photo_albums.test_utils.AlbumTest.fixtures">
+<tt class="descname">fixtures</tt><a class="headerlink" href="#photo_albums.test_utils.AlbumTest.fixtures" title="Permalink to this definition">¶</a></dt>
+<dd>fixtures to be loaded (at least with users, images and
+objects with galleries)</dd></dl>
+
+<dl class="attribute">
+<dt id="photo_albums.test_utils.AlbumTest.image2_in_album_id">
+<tt class="descname">image2_in_album_id</tt><a class="headerlink" href="#photo_albums.test_utils.AlbumTest.image2_in_album_id" title="Permalink to this definition">¶</a></dt>
+<dd></dd></dl>
+
+<dl class="attribute">
+<dt id="photo_albums.test_utils.AlbumTest.image_in_album_id">
+<tt class="descname">image_in_album_id</tt><a class="headerlink" href="#photo_albums.test_utils.AlbumTest.image_in_album_id" title="Permalink to this definition">¶</a></dt>
+<dd></dd></dl>
+
+<dl class="attribute">
+<dt id="photo_albums.test_utils.AlbumTest.image_in_other_album_id">
+<tt class="descname">image_in_other_album_id</tt><a class="headerlink" href="#photo_albums.test_utils.AlbumTest.image_in_other_album_id" title="Permalink to this definition">¶</a></dt>
+<dd>id&#8217;s of various images: 2 images in album (second is nedded if tou want
+to test reordering) and one image in other album to test permission checks</dd></dl>
+
+<dl class="attribute">
+<dt id="photo_albums.test_utils.AlbumTest.password">
+<tt class="descname">password</tt><a class="headerlink" href="#photo_albums.test_utils.AlbumTest.password" title="Permalink to this definition">¶</a></dt>
+<dd>existing user&#8217;s password</dd></dl>
+
+<dl class="attribute">
+<dt id="photo_albums.test_utils.AlbumTest.username">
+<tt class="descname">username</tt><a class="headerlink" href="#photo_albums.test_utils.AlbumTest.username" title="Permalink to this definition">¶</a></dt>
+<dd>existing user&#8217;s username</dd></dl>
+
 </dd></dl>
 
 </div>

File docs/_build/html/objects.inv

 photo_albums.views mod index.html
 photo_albums.urls mod index.html
 photo_albums.test_utils mod index.html
+photo_albums.test_utils.AlbumTest.excluded_views attribute index.html
 photo_albums.test_utils.AlbumTest class index.html
-photo_albums.views.delete_image attribute index.html
+photo_albums.test_utils.AlbumTest.image2_in_album_id attribute index.html
+photo_albums.urls.PhotoAlbumSite class index.html
+photo_albums.test_utils.AlbumTest.username attribute index.html
+photo_albums.test_utils.AlbumTest.test_auth_views method index.html
+photo_albums.test_utils.AlbumTest.image_in_album_id attribute index.html
 photo_albums.views.show_image function index.html
 photo_albums.views.edit_image attribute index.html
+photo_albums.test_utils.AlbumTest.album_site attribute index.html
+photo_albums.test_utils.AlbumTest.fixtures attribute index.html
+photo_albums.test_utils.AlbumTest.test_reorder method index.html
+photo_albums.views.delete_image attribute index.html
 photo_albums.test_utils.AlbumTest.test_public_views method index.html
+photo_albums.views.show_album function index.html
+photo_albums.test_utils.AlbumTest.album_for_id attribute index.html
+photo_albums.views.upload_main_image attribute index.html
+photo_albums.views.set_as_main_image attribute index.html
+photo_albums.test_utils.AlbumTest.password attribute index.html
 photo_albums.test_utils.AlbumTest.test_forbidden_views method index.html
+photo_albums.test_utils.AlbumTest.image_in_other_album_id attribute index.html
 photo_albums.views.edit_album attribute index.html
 photo_albums.views.upload_images attribute index.html
-photo_albums.test_utils.AlbumTest.test_reorder method index.html
 photo_albums.views.clear_main_image attribute index.html
-photo_albums.urls.PhotoAlbumSite class index.html
-photo_albums.views.set_as_main_image attribute index.html
 photo_albums.test_utils.AlbumTest.check method index.html
-photo_albums.test_utils.AlbumTest.test_auth_views method index.html
-photo_albums.views.upload_main_image attribute index.html
-photo_albums.views.show_album function index.html

File docs/_build/html/searchindex.js

-Search.setIndex({desctypes:{"0":"class","1":"attribute","2":"function","3":"method"},terms:{pluggabl:0,has_edit_permiss:0,obiwanu:0,formset:0,all:0,prefix:[],subclass:0,follow:0,alt:0,photo_album:0,depend:0,string:0,fals:0,account:0,util:[],context_processor:0,veri:0,contenttyp:0,ref:[],list:0,upload:0,iter:0,pleas:0,unmark:0,accounts_photo_sit:0,second:0,pass:0,index:[],appear:0,ned:0,delet:0,version:0,method:0,gener:0,here:0,errorlist:[],upload_form_class:0,becom:0,valu:0,search:[],error_class:[],vasia:0,"0x1a1bb30":[],app_util:[],chang:0,extra:0,modul:0,href:0,instal:0,from:0,current_app:0,next:0,prev:0,type:0,reorder:0,peopl:0,relat:0,enhanc:0,accept:0,sorl:0,obj:0,must:0,none:0,edit_imag:0,alia:[],setup:0,work:0,uniqu:0,annoi:0,can:0,purpos:0,overrid:0,edit_form_class:0,want:0,view_us:[],templat:0,tag:0,smth:0,login_requir:[],alwai:0,multipl:0,attachedimageform:0,"__init__":[],instead:0,photoformset:0,clone:0,mai:0,data:0,"0x1a19b70":[],django:0,issu:0,object_regex:0,allow:0,media:[],callabl:0,fallback:0,order:0,becaus:0,clear_main_imag:0,"0x1a1caf0":[],paramet:0,write:0,thank:0,img:0,html:0,main:0,edit_album:0,good:0,"return":0,python:0,auth:0,mention:0,name:0,edit:0,photoalbumssit:0,revers:0,each:0,attachedimag:[],show_imag:0,runtest:0,meta:[],my_fixtur:0,album:0,upload_imag:0,test_auth_view:0,content:[],modelform:0,urlpattern:0,empty_permit:[],base:0,org:0,caption:0,place:0,urlconf:0,lambda:0,instance_nam:0,template_nam:0,onc:0,alreadi:0,installed_app:0,auto_id:[],differ:0,account_imag:[],least:0,tou:0,attach:0,"0x1a1aaf0":[],test_forbidden_view:0,scheme:[],option:0,namespac:0,setuptool:0,kind:0,provid:0,initi:[],"0x1a14af0":[],queryset:0,ani:0,have:0,tabl:0,need:0,dedic:0,exclud:0,object_id:0,note:0,indic:[],necesseri:0,album_sit:0,endfor:0,usernam:0,object:0,galleri:0,label_suffix:[],regular:0,deploi:0,lookup_field:0,"class":0,don:0,url:0,request:0,"100x50":0,enctyp:0,show:0,get_template_nam:[],model_nam:0,permiss:0,redirect:0,should:0,dict:0,folder:0,extra_context:0,variou:0,delete_imag:0,express:0,set_as_main_imag:0,report:0,requir:0,useralbumtest:0,attachedimageformformset:[],stuff:0,integr:0,contain:0,where:0,view:0,set:0,methodnam:0,see:[],multipart:0,testcas:0,modelformset:0,statu:0,correctli:0,pattern:0,user:0,thumb:[],"import":0,thumbnail:0,extend:[],image_id:0,entir:0,addit:0,behaviour:0,etc:0,excluded_view:0,context:0,load:0,upload_formset_class:0,reorder_imag:0,assum:0,mark:0,basic:0,imag:0,bulk:0,look:0,defin:0,fixtur:0,endblock:[],them:0,kwarg:0,sever:0,decor:[],welcom:0,perform:0,suggest:0,make:0,same:[],instanc:0,document:0,complet:0,http:0,action:0,rais:0,album_us:0,userprofile__slug:0,test_help:0,upload_main_imag:0,exampl:0,thi:0,model:0,usual:0,photo:0,test_public_view:0,test_util:0,thees:[],easi:0,except:0,add:0,input:0,save:0,app:0,photoalbumsit:0,which:0,password:0,template_object_nam:0,like:0,"0x1a1baf0":[],albumtest:0,album_for_id:0,necessari:0,page:[],test_reord:0,syncdb:0,librari:0,confirm:0,per:0,tracker:0,pluggablesit:[],imageeditform:0,id_:[],previou:0,run:0,usag:0,step:0,post:0,viewtest:0,slug:0,plug:0,src:0,kmike:0,manag:0,user_imag:0,dialog:0,constructor:0,image_in_other_album_id:0,block:[],image2_in_album_id:0,photo_smal:[],set_image_ord:0,easy_instal:0,your:0,submit:0,custom:[],avail:0,show_album:0,includ:0,suit:0,"function":0,form:0,"0x1a19bb0":[],link:0,"true":0,bug:0,possibl:0,"default":0,autoclass:[],displai:0,site:0,otherwis:0,confirm_delet:0,app_nam:0,featur:0,creat:0,"0x1a1bb70":[],exist:0,file:[],pip:0,check:0,"_custom_url_schem":[],field:0,other:0,lookup:0,test:0,you:0,variabl:0,image_in_album_id:0,get_profil:[],svn:0,my_object_slug:0,bitbucket:0,rule:0,generic_imag:0,generic_util:0},titles:["django-photo-albums&#8217;s documentation"],modules:{"photo_albums.views":0,"photo_albums.urls":0,"photo_albums.test_utils":0},descrefs:{"photo_albums.views":{upload_images:[0,1],edit_album:[0,1],set_as_main_image:[0,1],edit_image:[0,1],upload_main_image:[0,1],clear_main_image:[0,1],show_album:[0,2],show_image:[0,2],delete_image:[0,1]},"photo_albums.test_utils.AlbumTest":{test_reorder:[0,3],test_forbidden_views:[0,3],check:[0,3],test_public_views:[0,3],test_auth_views:[0,3]},"photo_albums.urls":{PhotoAlbumSite:[0,0]},"photo_albums.test_utils":{AlbumTest:[0,0]}},filenames:["index"]})
+Search.setIndex({desctypes:{"0":"attribute","1":"class","2":"method","3":"function"},terms:{pluggabl:0,has_edit_permiss:0,obiwanu:0,formset:0,all:0,prefix:[],subclass:0,follow:0,alt:0,photo_album:0,depend:0,string:0,fals:0,account:0,util:[],context_processor:0,veri:0,contenttyp:0,ref:[],list:0,upload:0,iter:0,pleas:0,unmark:0,accounts_photo_sit:0,second:0,pass:0,index:[],appear:0,ned:0,delet:0,version:0,method:0,gener:0,here:0,errorlist:[],upload_form_class:0,becom:0,valu:0,search:[],error_class:[],vasia:0,"0x1a1bb30":[],app_util:[],chang:0,extra:0,modul:0,href:0,instal:0,from:0,current_app:0,next:0,prev:0,type:0,reorder:0,peopl:0,relat:0,enhanc:0,templat:0,sorl:0,obj:0,must:0,none:0,edit_imag:0,alia:[],setup:0,work:0,uniqu:0,annoi:0,can:0,purpos:0,overrid:0,edit_form_class:0,want:0,view_us:[],indic:[],tag:0,smth:0,login_requir:[],alwai:0,multipl:0,attachedimageform:0,"__init__":[],instead:0,photoformset:0,clone:0,mai:0,data:0,"0x1a19b70":[],django:0,issu:0,object_regex:0,allow:0,media:[],callabl:0,fallback:0,order:0,becaus:0,clear_main_imag:0,"0x1a1caf0":[],paramet:0,write:0,thank:0,img:0,html:0,main:0,edit_album:0,good:0,"return":0,python:0,auth:0,mention:0,name:0,edit:0,photoalbumssit:0,revers:0,each:0,attachedimag:[],show_imag:0,runtest:0,meta:[],my_fixtur:0,album:0,upload_imag:0,test_auth_view:0,content:[],modelform:0,urlpattern:0,empty_permit:[],base:0,org:0,caption:0,place:0,urlconf:0,lambda:0,instance_nam:0,template_nam:0,onc:0,alreadi:0,installed_app:0,auto_id:[],differ:0,account_imag:[],least:0,tou:0,attach:0,"0x1a1aaf0":[],accept:0,test_forbidden_view:0,scheme:[],option:0,namespac:0,setuptool:0,kind:0,provid:0,initi:[],"0x1a14af0":[],queryset:0,ani:0,have:0,tabl:0,need:0,dedic:0,exclud:0,object_id:0,note:0,which:0,necesseri:0,album_sit:0,endfor:0,usernam:0,object:0,galleri:0,label_suffix:[],regular:0,deploi:0,lookup_field:0,"class":0,don:0,url:0,request:0,"100x50":0,enctyp:0,show:0,get_template_nam:[],model_nam:0,permiss:0,redirect:0,should:0,dict:0,folder:0,extra_context:0,variou:0,delete_imag:0,express:0,set_as_main_imag:0,report:0,requir:0,useralbumtest:0,attachedimageformformset:[],stuff:0,integr:0,contain:0,where:0,view:0,set:0,methodnam:0,see:[],multipart:0,testcas:0,modelformset:0,statu:0,correctli:0,pattern:0,user:0,thumb:[],won:0,"import":0,thumbnail:0,extend:[],image_id:0,entir:0,addit:0,behaviour:0,etc:0,excluded_view:0,context:0,load:0,upload_formset_class:0,reorder_imag:0,assum:0,mark:0,basic:0,imag:0,bulk:0,look:0,defin:0,fixtur:0,endblock:[],them:0,kwarg:0,sever:0,decor:[],welcom:0,perform:0,suggest:0,make:0,same:[],instanc:0,document:0,complet:0,http:0,action:0,rais:0,album_us:0,userprofile__slug:0,test_help:0,upload_main_imag:0,exampl:0,thi:0,model:0,usual:0,photo:0,test_public_view:0,test_util:0,thees:[],easi:0,except:0,add:0,input:0,save:0,app:0,photoalbumsit:0,password:0,template_object_nam:0,like:0,"0x1a1baf0":[],albumtest:0,album_for_id:0,necessari:0,page:[],test_reord:0,syncdb:0,librari:0,confirm:0,per:0,tracker:0,pluggablesit:[],imageeditform:0,id_:[],previou:0,run:0,usag:0,step:0,post:0,viewtest:0,slug:0,plug:0,src:0,kmike:0,manag:0,user_imag:0,dialog:0,constructor:0,image_in_other_album_id:0,block:[],image2_in_album_id:0,photo_smal:[],set_image_ord:0,easy_instal:0,your:0,submit:0,custom:[],avail:0,show_album:0,includ:0,suit:0,"function":0,form:0,"0x1a19bb0":[],link:0,"true":0,bug:0,possibl:0,"default":0,autoclass:[],displai:0,site:0,otherwis:0,confirm_delet:0,app_nam:0,featur:0,creat:0,"0x1a1bb70":[],exist:0,file:[],pip:0,check:0,"_custom_url_schem":[],field:0,other:0,lookup:0,test:0,you:0,variabl:0,image_in_album_id:0,get_profil:[],svn:0,my_object_slug:0,bitbucket:0,rule:0,generic_imag:0,generic_util:0},titles:["django-photo-albums&#8217;s documentation"],modules:{"photo_albums.views":0,"photo_albums.urls":0,"photo_albums.test_utils":0},descrefs:{"photo_albums.views":{upload_images:[0,0],edit_album:[0,0],set_as_main_image:[0,0],edit_image:[0,0],upload_main_image:[0,0],delete_image:[0,0],show_album:[0,3],show_image:[0,3],clear_main_image:[0,0]},"photo_albums.test_utils.AlbumTest":{username:[0,0],album_for_id:[0,0],image_in_other_album_id:[0,0],excluded_views:[0,0],test_auth_views:[0,2],image_in_album_id:[0,0],album_site:[0,0],test_public_views:[0,2],test_reorder:[0,2],test_forbidden_views:[0,2],fixtures:[0,0],password:[0,0],check:[0,2],image2_in_album_id:[0,0]},"photo_albums.urls":{PhotoAlbumSite:[0,1]},"photo_albums.test_utils":{AlbumTest:[0,1]}},filenames:["index"]})

File docs/conf.py

 # output. They are ignored by default.
 #show_authors = False
 
+autodoc_member_order = 'groupwise'
+
 # The name of the Pygments (syntax highlighting) style to use.
 pygments_style = 'sphinx'
 

File docs/index.rst

 ===================
 	
 .. automodule:: photo_albums.test_utils
-	:show-inheritance:
-	:members:
-	:undoc-members:
+    :show-inheritance:
+    :members:
+    :undoc-members:
 	
 Bugs
 ====

File photo_albums/test_utils.py

 class AlbumTest(ViewTest):
         
     username = None
+    "existing user's username"
+
     password = None
+    "existing user's password"
+    
     fixtures = []
+    """ fixtures to be loaded (at least with users, images and
+        objects with galleries)
+    """
+    
     album_site = None
+    " ``PhotoAlbumSite`` instance to be tested "
+    
     excluded_views = []
+    " a list of names of excluded views. Excluded views won't be tested. "
     
     album_for_id = None
+    " object id (or slug) for which album is attached to "
+    
     non_existing_object_id = 0
     
+    image2_in_album_id = None    
+    " "
+    
     image_in_album_id = None
-    image2_in_album_id = None
+    " "
+    
     image_in_other_album_id = None
-    non_existing_image_id = 0
-            
+    """ id's of various images: 2 images in album (second is nedded if tou want
+        to test reordering) and one image in other album to test permission checks
+    """
+    
+    non_existing_image_id = 0            
     
     def check(self, view, status, kwargs=None):
         if not kwargs: