def test_endpoint_type(self):
    self.patch_object(api_crud.ch_core.hookenv, 'config')
    self.config.return_value = False
    self.assertEquals(api_crud.endpoint_type(), 'publicURL')
    self.config.return_value = True
    self.assertEquals(api_crud.endpoint_type(), 'internalURL')
def test_endpoint_type(self):
    self.patch_object(api_crud.ch_core.hookenv, 'config')
    self.config.return_value = False
    self.assertEquals(api_crud.endpoint_type(), 'publicURL')
    self.config.return_value = True
    self.assertEquals(api_crud.endpoint_type(), 'internalURL')