def test_upload_for_swagger_path(self): with self.graph.app.test_request_context(): path = build_path(Operation.UploadFor, self.relation_ns) assert_that(path, is_(equal_to("/api/person/{person_id}/file")))
def test_swagger_path(self): with self.graph.app.test_request_context(): path = build_path(Operation.CreateCollection, self.ns) assert_that(path, is_(equal_to("/api/foo")))
def test_upload_swagger_path(self): with self.graph.app.test_request_context(): path = build_path(Operation.Upload, self.ns) assert_that(path, is_(equal_to("/api/file")))
def test_swagger_path(self): with self.graph.app.test_request_context(): path = build_path(Operation.Alias, self.ns) assert_that(path, is_(equal_to("/api/person/{person_name}")))
def test_upload_for_swagger_path(self): with self.graph.app.test_request_context(): path = build_path(Operation.UploadFor, self.relation_ns) assert_that(path, is_(equal_to("/api/person/{person_id}/file")))
def test_upload_swagger_path(self): with self.graph.app.test_request_context(): path = build_path(Operation.Upload, self.ns) assert_that(path, is_(equal_to("/api/file")))
def test_swagger_path(self): with self.graph.app.test_request_context(): path = build_path(Operation.CreateCollection, self.ns) assert_that(path, is_(equal_to("/api/foo")))
def test_swagger_path(self): with self.graph.app.test_request_context(): path = build_path(Operation.Alias, self.ns) assert_that(path, is_(equal_to("/api/person/{person_name}")))