## Test data location preferences
##
## Author: Nicole Deflaxu <nicole.deflaux@sagebase.org>
###############################################################################
.setUp <-
function()
{
synapseClient:::.setCache("untiTestSavedLocationPrefs", synapseClient:::synapseDataLocationPreferences())
}
.tearDown <-
function()
{
synapseClient:::synapseDataLocationPreferences(synapseClient:::.getCache("untiTestSavedLocationPrefs"))
synapseClient:::.deleteCache("untiTestSavedLocationPrefs")
}
unitTestHappyCase <-
function()
{
synapseClient:::synapseDataLocationPreferences(c('awss3'))
}
unitTestInvalidLocationPref <-
function()
{
checkException(synapseClient:::synapseDataLocationPreferences(c('invalid', 'awss3')))
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.