- """Test pointers made for single object keep pointing to it."""
- assert self.proc2.id_ is not None
+ """Test pointers made for single object keep pointing to it, and
+ subsequent retrievals don't overload relations."""
+ assert isinstance(self.proc1.id_, int)
+ assert isinstance(self.proc2.id_, int)
+ c1 = Condition(None, False)
+ c1.save(self.db_conn)
+ assert isinstance(c1.id_, int)
+ self.proc1.set_conditions(self.db_conn, [c1.id_])