

def test_sha512_invalid_match(self):
    creds = 'sha512:salt$deadbabedeadbabedeadbabedeadbabedeadbabedeadbabedeadbabedeadbabedeadbabedeadbabedeadbabedeadbabedeadbabec0ffeebadc0ffeeec0ffeeba'
    match = self.auth_encoder.match('keystring', creds)
    self.assertEqual(match, False)
    creds = 'sha512:salt$482e73705fac6909e2d78e8bbaf65ac3ca14738f445cc2367b7daa3f0e8f3dcfe798e426b9e332776c8da59c0c11d4832931d1bf48830f670ecc6ceb04fbad0f'
    match = self.auth_encoder.match('keystring2', creds)
    self.assertEqual(match, False)

dataset/ETHPy150Open openstack/swauth/test/unit/test_authtypes.py TestSha512.test_sha512_invalid_match/original