class TestAPI_A_LITE(FedoraTestCase): fixtures = ['object-with-pid.foxml'] pidspace = FEDORA_PIDSPACE def setUp(self): super(TestAPI_A_LITE, self).setUp() self.pid = self.fedora_fixtures_ingested[0] self.api_a = API_A_LITE(FEDORA_ROOT_NONSSL, FEDORA_USER, FEDORA_PASSWORD) def testDescribeRepository(self): r = self.api_a.describeRepository() self.assert_(b'<repositoryName>' in r.content) self.assert_(b'<repositoryVersion>' in r.content) self.assert_(b'<adminEmail>' in r.content)
class TestAPI_A_LITE(FedoraTestCase): fixtures = ["object-with-pid.foxml"] pidspace = FEDORA_PIDSPACE def setUp(self): super(TestAPI_A_LITE, self).setUp() self.pid = self.fedora_fixtures_ingested[0] self.api_a = API_A_LITE(FEDORA_ROOT_NONSSL, FEDORA_USER, FEDORA_PASSWORD) def testDescribeRepository(self): r = self.api_a.describeRepository() self.assert_(b"<repositoryName>" in r.content) self.assert_(b"<repositoryVersion>" in r.content) self.assert_(b"<adminEmail>" in r.content)
class TestAPI_A_LITE(FedoraTestCase): fixtures = ["object-with-pid.foxml"] pidspace = FEDORA_PIDSPACE def setUp(self): super(TestAPI_A_LITE, self).setUp() self.pid = self.fedora_fixtures_ingested[0] self.opener = AuthorizingServerConnection(FEDORA_ROOT_NONSSL, FEDORA_USER, FEDORA_PASSWORD) self.api_a = API_A_LITE(self.opener) def testDescribeRepository(self): desc, url = self.api_a.describeRepository() self.assert_("<repositoryName>" in desc) self.assert_("<repositoryVersion>" in desc) self.assert_("<adminEmail>" in desc)
class TestAPI_A_LITE(FedoraTestCase): fixtures = ['object-with-pid.foxml'] pidspace = FEDORA_PIDSPACE def setUp(self): super(TestAPI_A_LITE, self).setUp() self.pid = self.fedora_fixtures_ingested[0] self.opener = AuthorizingServerConnection(FEDORA_ROOT_NONSSL, FEDORA_USER, FEDORA_PASSWORD) self.api_a = API_A_LITE(self.opener) def testDescribeRepository(self): desc, url = self.api_a.describeRepository() self.assert_('<repositoryName>' in desc) self.assert_('<repositoryVersion>' in desc) self.assert_('<adminEmail>' in desc)