def METHOD_NAME(self):
    with sqlite.connect(':memory:') as bck:
        self.cx.backup(bck, name='main')
    with sqlite.connect(':memory:') as bck:
        self.cx.backup(bck, name='temp')
    with self.assertRaises(sqlite.OperationalError) as cm:
        with sqlite.connect(':memory:') as bck:
            self.cx.backup(bck, name='non-existing')
    self.assertIn(
        str(cm.exception),
        ['SQL logic error', 'SQL logic error or missing database']
    )
    self.cx.execute("ATTACH DATABASE ':memory:' AS attached_db")
    self.cx.execute('CREATE TABLE attached_db.foo (key INTEGER)')
    self.cx.executemany('INSERT INTO attached_db.foo (key) VALUES (?)', [(3,), (4,)])
    self.cx.commit()
    with sqlite.connect(':memory:') as bck:
        self.cx.backup(bck, name='attached_db')
        self.verify_backup(bck)