Beispiel #1
0
 def test_all_matching_genres(self):
     fantasy, ig = Genre.lookup(self._db, classifier.Fantasy)
     cooking, ig = Genre.lookup(self._db, classifier.Cooking)
     matches = Lane.all_matching_genres(self._db, [fantasy, cooking])
     names = sorted([x.name for x in matches])
     eq_([
         u'Cooking', u'Epic Fantasy', u'Fantasy', u'Historical Fantasy',
         u'Urban Fantasy'
     ], names)