tests/testthat/test-agnostic_exists.R

context("exists")

clear_test_environments()

test_that("it can call an interface's `exists` method", {
  expect_false(csmpi_custom_exists("x", mock_cloud_interface))
  .mock_cloud_env[["x"]] <- 7
  expect_true(csmpi_custom_exists("x", mock_cloud_interface))
})
abelcastilloavant/csmpi documentation built on May 24, 2019, 7:21 p.m.