def get_expected_map(self, table_name, expected):
    '\n        Builds the expected map that is common to several operations\n        '
    kwargs = {EXPECTED: {}}
    for (key, condition) in expected.items():
        if (EXISTS in condition):
            kwargs[EXPECTED][key] = {EXISTS: condition.get(EXISTS)}
        elif (VALUE in condition):
            kwargs[EXPECTED][key] = {VALUE: {self.get_attribute_type(table_name, key): condition.get(VALUE)}}
        elif (COMPARISON_OPERATOR in condition):
            kwargs[EXPECTED][key] = {COMPARISON_OPERATOR: condition.get(COMPARISON_OPERATOR)}
            values = []
            for value in condition.get(ATTR_VALUE_LIST, []):
                attr_type = self.get_attribute_type(table_name, key, value)
                values.append({attr_type: self.parse_attribute(value)})
            if (condition.get(COMPARISON_OPERATOR) not in [NULL, NOT_NULL]):
                kwargs[EXPECTED][key][ATTR_VALUE_LIST] = values
    return kwargs
Builds the expected map that is common to several operations
def get_expected_map(self, table_name, expected):
    '\n        \n        '
    kwargs = {EXPECTED: {}}
    for (key, condition) in expected.items():
        if (EXISTS in condition):
            kwargs[EXPECTED][key] = {EXISTS: condition.get(EXISTS)}
        elif (VALUE in condition):
            kwargs[EXPECTED][key] = {VALUE: {self.get_attribute_type(table_name, key): condition.get(VALUE)}}
        elif (COMPARISON_OPERATOR in condition):
            kwargs[EXPECTED][key] = {COMPARISON_OPERATOR: condition.get(COMPARISON_OPERATOR)}
            values = []
            for value in condition.get(ATTR_VALUE_LIST, []):
                attr_type = self.get_attribute_type(table_name, key, value)
                values.append({attr_type: self.parse_attribute(value)})
            if (condition.get(COMPARISON_OPERATOR) not in [NULL, NOT_NULL]):
                kwargs[EXPECTED][key][ATTR_VALUE_LIST] = values
    return kwargs