Changeset c7f4aba


Ignore:
Timestamp:
Feb 15, 2010 9:04:41 PM (5 years ago)
Author:
olivier <>
Branches:
master, crem, crem2, crem3, dev, dev2, diadems, dj1.6, feature/breadcrumbs, feature/ts-0.5, feature/ts-0.5.4, feature/writecache, forma, generic, instru_search, lam, lam2, mapsv3, merge, nlivemulti, prob, production, release/1.4.4, sabiod, search, security, server, social, storage, telecaster, test, video
Children:
88b67c1
Parents:
95c9b76
git-author:
olivier <> (15/02/2010 21:04:41)
git-committer:
olivier <> (15/02/2010 21:04:41)
Message:

fix unit tests for new behaviour of queryset's by_title() and by_ethnic_group()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • telemeta/tests/model_tests.py

    rbe51b23 rc7f4aba  
    187187    def testEthnicGroup(self): 
    188188        "Test by_ethnic_group property of MediaCollection class" 
    189         result=self.collections.by_ethnic_group("a").order_by("title") 
     189        result=self.collections.by_ethnic_group(self.a).order_by("title") 
    190190        self.assertEquals(result[0], self.persepolis) 
    191191        self.assertEquals(result[1], self.volonte) 
     
    211211        self.assertEquals(result[4], self.item_5) 
    212212        self.assertEquals(result[5], self.item_6) 
     213        self.item_2.title = '' 
     214        self.item_2.save() 
     215        self.item_5.title = '' 
     216        self.item_5.save() 
    213217        result = self.items.by_title("volonté").order_by("title") 
    214218        self.assertEquals(result[0], self.item_2) 
Note: See TracChangeset for help on using the changeset viewer.