'Insure that password.__eq__ hashes test value before compare.'

def clstest(self, cls):

    password = cls('foo')
    self.assertNotEquals(password, 'foo')
    password.set('foo')
    hashed = str(password)
    self.assertEquals(password, 'foo')
    self.assertEquals(password.str, hashed)
    password = cls(hashed)
    self.assertNotEquals(password.str, 'foo')
    self.assertEquals(password, 'foo')
    self.assertEquals(password.str, hashed)
