def test_relation_path():
    assert_that(relation_path_for("foo", "bar", "uuid"),
                is_(equal_to("/foo/<uuid:foo_id>/bar")))
    assert_that(relation_path_for("foo", "bar", "baz"),
                is_(equal_to("/foo/<baz:foo_id>/bar")))
 def relation_path(self):
     return self.path + relation_path_for(self.subject, self.object_)
def test_relation_path():
    assert_that(relation_path_for("foo", "bar", "uuid"), is_(equal_to("/foo/<uuid:foo_id>/bar")))
    assert_that(relation_path_for("foo", "bar", "baz"), is_(equal_to("/foo/<baz:foo_id>/bar")))
 def relation_path(self):
     return self.path + relation_path_for(self.subject, self.object_,
                                          self.identifier_type,
                                          self.identifier_key)