@classmethod
    def from_items(cls, old_item=None, new_item=None):
        if not old_item and not new_item:
            return
        valid_item = new_item if new_item else old_item
        active = True if new_item else False
        old_config = old_item.config if old_item else {}
        new_config = new_item.config if new_item else {}
        return cls(index=valid_item.index,
                   region=valid_item.region,
                   account=valid_item.account,
                   name=valid_item.name,
                   old_config=old_config,
                   new_config=new_config,
                   active=active,
                   audit_issues=valid_item.audit_issues)
Create ChangeItem from two separate items.
dataset/ETHPy150Open Netflix/security_monkey/security_monkey/watcher.py/ChangeItem.from_items