def test_remove(self):
        """
        Ensures that a node can be removed
        """
        cons_hash = ConsistentHash(2)
        cons_hash.add('192.168.1.1')
        self.assertEquals(len(cons_hash), 2)
        cons_hash.remove('192.168.1.1')
        self.assertEquals(len(cons_hash), 0)

        self.assertTrue(cons_hash._is_consistent())
 def test_remove(self):
     """
     Ensures that a node can be removed
     """
     cons_hash = ConsistentHash(2)
     cons_hash.add('192.168.1.1')        
     self.assertEquals(len(cons_hash), 2)        
     cons_hash.remove('192.168.1.1')                
     self.assertEquals(len(cons_hash), 0)                
       
     self.assertTrue(cons_hash._is_consistent())