def test_update_tools_record(self): tool = Tool("tool_name", datetime.date.today(), "") tool1 = Tool("tool_name1", datetime.date.today() - datetime.timedelta(1), "") tools_record = {"tool_name": tool, "tool_name1": tool1} tool1_update = Tool("tool_name1", datetime.date.today(), "") updated_tools = {"tool_name1" : tool1_update} update_tools_record(tools_record, updated_tools) self.assertDictEqual(tools_record, {"tool_name": tool, "tool_name1": tool1_update})