def METHOD_NAME(self):
    try:
        db1 = db.DB()
        db1.open(self.filename, None, db.DB_HASH, db.DB_CREATE)
        db1['a'] = 'eh?'
        db1['a\x00'] = 'eh zed.'
        db1['a\x00a'] = 'eh zed eh?'
        db1['aaa'] = 'eh eh eh!'
        keys = db1.keys()
        keys.sort()
        self.assertEqual(['a', 'a\x00', 'a\x00a', 'aaa'], keys)
        self.assertEqual(db1['a'], 'eh?')
        self.assertEqual(db1['a\x00'], 'eh zed.')
        self.assertEqual(db1['a\x00a'], 'eh zed eh?')
        self.assertEqual(db1['aaa'], 'eh eh eh!')
    finally:
        db1.close()
        test_support.unlink(self.filename)