Пример #1
0
 def test_price_sort(self):
     apps = test_listing_sort(self,
                              'price',
                              None,
                              reverse=False,
                              sel_class='extra-opt')
     eq_(
         apps,
         list(Webapp.objects.listed().order_by('addonpremium__price__price',
                                               'id')))
Пример #2
0
 def test_newest_sort(self):
     test_listing_sort(self, 'created', 'created')
Пример #3
0
 def test_upandcoming_sort(self):
     test_listing_sort(self, 'hotness', 'hotness', sel_class='extra-opt')
Пример #4
0
 def test_updated_sort(self):
     test_listing_sort(self, 'updated', 'last_updated',
                       sel_class='extra-opt')
Пример #5
0
 def test_featured_sort(self):
     test_listing_sort(self, 'featured', sel_class='extra-opt')
Пример #6
0
 def test_updated_sort(self):
     test_listing_sort(self,
                       'updated',
                       'last_updated',
                       sel_class='extra-opt')
Пример #7
0
 def test_newest_sort(self):
     test_listing_sort(self, 'created', 'created', sel_class='extra-opt')
Пример #8
0
 def test_price_sort(self):
     apps = test_listing_sort(self, 'price', None, reverse=False,
                              sel_class='extra-opt')
     eq_(apps, list(Webapp.objects.listed()
                    .order_by('addonpremium__price__price', 'id')))
Пример #9
0
 def test_paid_sort(self):
     for app in test_listing_sort(self, 'paid', 'weekly_downloads'):
         eq_(app.is_premium(), True)
Пример #10
0
 def test_free_sort(self):
     for app in test_listing_sort(self, 'free', 'weekly_downloads'):
         eq_(app.is_premium(), False)
Пример #11
0
 def test_newest_sort(self):
     test_listing_sort(self, 'created', 'created')
Пример #12
0
 def test_newest_sort(self):
     test_listing_sort(self, "created", "created")
Пример #13
0
 def test_upandcoming_sort(self):
     test_listing_sort(self, 'hotness', 'hotness', sel_class='extra-opt')
Пример #14
0
 def test_free_sort(self):
     for app in test_listing_sort(self, 'free', 'weekly_downloads'):
         eq_(app.is_premium(), False)
Пример #15
0
 def test_rating_sort(self):
     test_listing_sort(self, 'rating', 'bayesian_rating')
Пример #16
0
 def test_paid_sort(self):
     for app in test_listing_sort(self, 'paid', 'weekly_downloads'):
         eq_(app.is_premium(), True)
Пример #17
0
 def test_newest_sort(self):
     test_listing_sort(self, 'created', 'created', sel_class='extra-opt')
Пример #18
0
 def test_rating_sort(self):
     test_listing_sort(self, 'rating', 'bayesian_rating')
Пример #19
0
 def test_name_sort(self):
     test_listing_sort(self, 'name', 'name', reverse=False,
                       sel_class='extra-opt')
Пример #20
0
 def test_name_sort(self):
     test_listing_sort(self, 'name', 'name', reverse=False,
                       sel_class='extra-opt')
Пример #21
0
 def test_featured_sort(self):
     test_listing_sort(self, 'featured', sel_class='extra-opt')