Example #1
0
 def test_set(self):
     eq_(GroupedRating.get(1865, update_none=False), None)
     GroupedRating.set(1865)
     eq_(GroupedRating.get(1865, update_none=False), self.grouped_ratings)
Example #2
0
 def test_set(self):
     eq_(GroupedRating.get(1865), None)
     GroupedRating.set(1865)
     eq_(GroupedRating.get(1865), [(1, 0), (2, 0), (3, 0), (4, 1), (5, 0)])
Example #3
0
 def test_set(self):
     eq_(GroupedRating.get(1865), None)
     GroupedRating.set(1865)
     eq_(GroupedRating.get(1865), [[1, 0], [2, 0], [3, 0], [4, 1], [5, 0]])
Example #4
0
 def test_set(self):
     eq_(GroupedRating.get(1865), None)
     GroupedRating.set(1865)
     eq_(GroupedRating.get(1865), [(1, 0), (2, 0), (3, 0), (4, 1), (5, 0)])