def METHOD_NAME(self):
    db_path = os.path.join(TESTFN, 'test.msi')
    with self.assertRaises(msilib.MSIError) as cm:
        msilib.OpenDatabase(db_path, msilib.MSIDBOPEN_CREATE)
    self.assertEqual(str(cm.exception), 'create failed')