def METHOD_NAME(self):
    db = MagicMock()
    copy_designs(db, 'design_name')
    db.copy_doc.assert_called_once_with('_design/design_name-tmp', '_design/design_name')
    db.__delitem__.assert_called_with('_design/design_name-tmp')