Beispiel #1
0
 def test_following_should_page_correctly(self):
     amico = Amico(redis_connection=self.redis_connection)
     self.__add_reciprocal_followers(amico)
     amico.following(
         1,
         page_options={
             'page': 1,
             'page_size': 5}).should.have.length_of(5)
     amico.following(
         1,
         page_options={
             'page': 1,
             'page_size': 10}).should.have.length_of(10)
     amico.following(
         1,
         page_options={
             'page': 1,
             'page_size': 26}).should.have.length_of(25)
Beispiel #2
0
 def test_it_should_return_the_correct_following_list(self):
     amico = Amico(redis_connection=self.redis_connection)
     amico.follow(1, 11)
     amico.follow(1, 12)
     amico.following(1).should.equal(["12", "11"])