def METHOD_NAME(self):
    str1 = "{type1.id2}='true'"
    cond1 = parse_condition_string(str1)
    self.assertEqual(cond1, {"type": "type1", "id": "id2", "equals": "true"})
    str2 = "{type1.id2}=true"
    cond2 = parse_condition_string(str2)
    self.assertEqual(cond2, {"type": "type1", "id": "id2", "equals": True})