def assert_keyfile_is_encrypted(self, keyfile):
with open(keyfile, "<STR_LIT:r>") as fh:<EOL><INDENT>self.assertEqual(<EOL>fh.readline()[:-<NUM_LIT:1>], "<STR_LIT>"<EOL>)<EOL>self.assertEqual(fh.readline()[:-<NUM_LIT:1>], "<STR_LIT>")<EOL>self.assertEqual(fh.readline()[<NUM_LIT:0>:<NUM_LIT:10>], "<STR_LIT>")<EOL><DEDENT>
A quick check that filename looks like an encrypted key.