示例#1
0
    def test_create_database(self):
        dbname = 'test-mma-database'

        mma = MMA(self.connection)
        mma.run(['create','database',dbname])

        self.assertTrue(dbname in self.marklogic.databases())

        mma.run(['delete','database',dbname])

        self.assertFalse(dbname in self.marklogic.databases())
    def test_create_database(self):
        self.marklogic = MarkLogic(self.connection)
        dbname = 'test-mma-database'

        mma = MMA(self.connection)
        mma.run(['create', 'database', dbname])

        assert dbname in self.marklogic.databases()

        mma.run(['delete', 'database', dbname])

        assert dbname not in self.marklogic.databases()
示例#3
0
    def test_create_database(self):
        self.marklogic = MarkLogic(self.connection)
        dbname = 'test-mma-database'

        mma = MMA(self.connection)
        mma.run(['create', 'database', dbname])

        assert dbname in self.marklogic.databases()

        mma.run(['delete', 'database', dbname])

        assert dbname not in self.marklogic.databases()