Add the 'aes' snippet: assertEqual(set, set); Change .assertEqual(len(actual), expect) to .assertEqual(expect, len(actual)).