# Path: dnsforever/config.py



from sqlalchemy import create_engine
from sqlalchemy import Column, Integer, String, Unicode, Boolean, DateTime, \
    UnicodeText
from sqlalchemy import ForeignKey
from sqlalchemy.orm import sessionmaker, validates, relationship
from sqlalchemy.sql import functions
from sqlalchemy.ext.declarative import declarative_base
from dnsforever.config import database_url, webforwarding_domain
import re
import unittest
import string
import random

    memo = Column(UnicodeText, default=u'')


engine = create_engine(database_url, pool_recycle=300)

Session = sessionmaker(autocommit=True)
Session.configure(bind=engine)


def db_install():
    Base.metadata.create_all(engine)


def db_uninstall():
    Base.metadata.drop_all(engine)


class UserTestCase(unittest.TestCase):
    def setUp(self):
        Base.metadata.create_all(engine)

    def test_user(self):
        s = Session()

        user1 = User(name=u'dnsforever',
                     email=u'test@dnsforever.kr',
                     password=u'test')

        with s.begin():

# Path: dnsforever/config.py



# Path: dnsforever/models.py
from sqlalchemy import create_engine
from sqlalchemy import Column, Integer, String, Unicode, Boolean, DateTime, \
    UnicodeText
from sqlalchemy import ForeignKey
from sqlalchemy.orm import sessionmaker, validates, relationship
from sqlalchemy.sql import functions
from sqlalchemy.ext.declarative import declarative_base
from dnsforever.config import database_url, webforwarding_domain
import re
import unittest
import string
import random


    memo = Column(UnicodeText, default=u'')


engine = create_engine(database_url, pool_recycle=300)

Session = sessionmaker(autocommit=True)
Session.configure(bind=engine)


def db_install():
    Base.metadata.create_all(engine)


def db_uninstall():
    Base.metadata.drop_all(engine)


class UserTestCase(unittest.TestCase):
    def setUp(self):
        Base.metadata.create_all(engine)

    def test_user(self):
        s = Session()

        user1 = User(name=u'dnsforever',
                     email=u'test@dnsforever.kr',
                     password=u'test')

        with s.begin():

            s.add(user1)