def test_it_should_clear_pending_pending_with_relationships(self): amico = Amico( options={ 'pending_follow': True}, redis_connection=self.redis_connection) amico.follow(1, 11) amico.pending_count(11).should.equal(1) amico.clear(1) amico.pending_count(11).should.equal(0)