# Path: nive_cms/tests/__local.py
# WIN = sys.platform.startswith("win")
#     ROOT = "c:\\Temp\\nive_cms\\"
#     ROOT = "/var/tmp/nive_cms/"
# DB_CONF = DatabaseConf(
#     dbName = ROOT+"cms.db",
#     fileRoot = ROOT,
#     context = "Sqlite3"
# )
# MYSQL_CONF = DatabaseConf(
#     context = "MySql",
#     dbName = "ut_nive_cms",
#     host = "localhost",
#     user = "root",
#     password = "",
#     port = "",
#     fileRoot = ROOT
# )
# POSTGRES_CONF = DatabaseConf(
#     context = "PostgreSql",
#     dbName = "ut_nive_cms",
#     host = "localhost",
#     user = "postgres",
#     password = "postgres",
#     port = "",
#     fileRoot = ROOT
# )
# ENABLE_SQLITE_TESTS = True
# ENABLE_MYSQL_TESTS = False
# ENABLE_POSTGRES_TESTS = False
#     class SqliteTestCase(unittest.TestCase):
#     class SqliteTestCase(object):
#     class MySqlTestCase(unittest.TestCase):
#     class MySqlTestCase(object):
#     class PostgreSqlTestCase(unittest.TestCase):
#     class PostgreSqlTestCase(object):
#         def _loadApp(self, mods=None):
#         def _loadApp(self, mods=None):
#         def _loadApp(self, mods=None):
#         def _loadApp(self, mods=None):
#         def _loadApp(self, mods=None):
#         def _loadApp(self, mods=None):


import unittest
from nive.workflow import WorkflowNotAllowed
from nive.security import Allow, Deny, Authenticated, Everyone, User
from nive_cms.tests.db_app import *
from nive_cms.tests import __local
        b2.GetName()
        b2.IsContainer()
        b2.GetPage()
        b2.GetPages()
        b2.GetElementContainer()
        b2.GetContainer()
        self.assert_(b2.GetColumn("left")==b2)
        #file
        b3 = create_file(r, user=user)
        b3.GetDownloadTitle()
        b3.FilenameToTitle()
        #menublock
        b0 = create_menublock(r, user=user)
        b0.GetMenuPages()
        
        root(a).Delete(r.id, user=user)
        self.assertEqual(ccc, a.db.GetCountEntries(), "Delete failed")
        


class ObjectTest_db_Sqlite(ObjectTest_db, __local.SqliteTestCase):
    """
    see tests.__local
    """
            
class ObjectTest_db_MySql(ObjectTest_db, __local.MySqlTestCase):
    """
    see tests.__local
    """


# Path: nive_cms/tests/__local.py
# WIN = sys.platform.startswith("win")
#     ROOT = "c:\\Temp\\nive_cms\\"
#     ROOT = "/var/tmp/nive_cms/"
# DB_CONF = DatabaseConf(
#     dbName = ROOT+"cms.db",
#     fileRoot = ROOT,
#     context = "Sqlite3"
# )
# MYSQL_CONF = DatabaseConf(
#     context = "MySql",
#     dbName = "ut_nive_cms",
#     host = "localhost",
#     user = "root",
#     password = "",
#     port = "",
#     fileRoot = ROOT
# )
# POSTGRES_CONF = DatabaseConf(
#     context = "PostgreSql",
#     dbName = "ut_nive_cms",
#     host = "localhost",
#     user = "postgres",
#     password = "postgres",
#     port = "",
#     fileRoot = ROOT
# )
# ENABLE_SQLITE_TESTS = True
# ENABLE_MYSQL_TESTS = False
# ENABLE_POSTGRES_TESTS = False
#     class SqliteTestCase(unittest.TestCase):
#     class SqliteTestCase(object):
#     class MySqlTestCase(unittest.TestCase):
#     class MySqlTestCase(object):
#     class PostgreSqlTestCase(unittest.TestCase):
#     class PostgreSqlTestCase(object):
#         def _loadApp(self, mods=None):
#         def _loadApp(self, mods=None):
#         def _loadApp(self, mods=None):
#         def _loadApp(self, mods=None):
#         def _loadApp(self, mods=None):
#         def _loadApp(self, mods=None):


# Path: nive_cms/tests/test_app.py
import unittest
from nive.workflow import WorkflowNotAllowed
from nive.security import Allow, Deny, Authenticated, Everyone, User
from nive_cms.tests.db_app import *
from nive_cms.tests import __local

        b2.GetName()
        b2.IsContainer()
        b2.GetPage()
        b2.GetPages()
        b2.GetElementContainer()
        b2.GetContainer()
        self.assert_(b2.GetColumn("left")==b2)
        #file
        b3 = create_file(r, user=user)
        b3.GetDownloadTitle()
        b3.FilenameToTitle()
        #menublock
        b0 = create_menublock(r, user=user)
        b0.GetMenuPages()
        
        root(a).Delete(r.id, user=user)
        self.assertEqual(ccc, a.db.GetCountEntries(), "Delete failed")
        


class ObjectTest_db_Sqlite(ObjectTest_db, __local.SqliteTestCase):
    """
    see tests.__local
    """
            
class ObjectTest_db_MySql(ObjectTest_db, __local.MySqlTestCase):
    """
    see tests.__local
    """


class ObjectTest_db_pg(ObjectTest_db, __local.PostgreSqlTestCase):