tests/testthat/test_create_dn.R

context("Create distinguished name")

testthat::test_that("Test attributes of returned object", {
  # Create distinguished name within EDI organizational unit
  userId <- "my_userid"
  ou <- "EDI"
  dn <- create_dn(userId, ou)
  expect_true(grepl("edirepository", dn))
  # Create distinguished name within LTER organizational unit
  userId <- "my_userid"
  ou <- "LTER"
  dn <- create_dn(userId, ou)
  expect_true(grepl("ecoinformatics", dn))
})

Try the EDIutils package in your browser

Any scripts or data that you put into this service are public.

EDIutils documentation built on Oct. 11, 2023, 1:08 a.m.