def test_cp32527():
 d = {'1': 1, '2': 1, '3': 1, 'a7': 1, 'a8': 1}
 d.pop('a7')
 d['a8'] = 5
 expected = 1
 actual = d.keys().count('a8')
 AreEqual(actual, expected)

def test_cp32527 ( ) : d = { '1' : 1 , '2' : 1 , '3' : 1 , 'a7' : 1 , 'a8' : 1 } d . pop ( 'a7' ) d [ 'a8' ] = 5 expected = 1 actual = d . keys ( ) . count ( 'a8' ) AreEqual ( actual , expected )
test for duplicate key in dict under specific hash value conditions .