def entity_b(resource_b): return factories.EntityFactory( resource=resource_b, string="entity b" )
def entity_a(resource_a): return factories.EntityFactory( resource=resource_a, string="entity a" )