#!/usr/bin/env python
# -*- coding: utf-8 -*-
########################################################################
# 
# Copyright (c) 2016
# 
########################################################################

"""
File: args_test.py
Author: tangweimin
Date: 2016/12/24
"""

import os
import sys
import unittest

sys.path.append(os.path.dirname(os.path.dirname(os.path.realpath(__file__))) + '/spider')

import db


class DBTestCase(unittest.TestCase):
    """ test DB module. """

    def setUp(self):
        """ test fixture setUp """

    def tearDown(self):
        """ test fixture tearDown """

    def test_oc(self):
        """ test DB open and close function."""
        adb = db.db.Instance()
        del adb
        print 'after del db'

    # def test_district(self):
    #     ''' test district releate functions '''
    #     self.assertEquals(a.d, True)
    #     self.assertEquals(a.fff, 0)
    #     self.assertEquals(a.t, '4')

if __name__ == '__main__':
    unittest.main()






#!/usr/bin/env python
# -*- coding: utf-8 -*-
########################################################################
# 
# Copyright (c) 2016
# 
########################################################################

"""
File: args_test.py
Author: tangweimin
Date: 2016/12/24
"""

import os
import sys
import unittest

sys.path.append(os.path.dirname(os.path.dirname(os.path.realpath(__file__))) + '/spider')

import db


class DBTestCase(unittest.TestCase):
    """ test DB module. """

    def setUp(self):
        """ test fixture setUp """

    def tearDown(self):
        """ test fixture tearDown """

    def test_oc(self):
        """ test DB open and close function."""
        adb = db.db.Instance()
        del adb
        print 'after del db'

    # def test_district(self):
    #     ''' test district releate functions '''
    #     self.assertEquals(a.d, True)
    #     self.assertEquals(a.fff, 0)
    #     self.assertEquals(a.t, '4')

if __name__ == '__main__':
    unittest.main()






#!/usr/bin/env python # -*- coding: utf-8 -*- ######################################################################## # # Copyright (c) 2016 # ######################################################################## File: args_test.py Author: tangweimin Date: 2016/12/24 test DB module. test fixture setUp test fixture tearDown test DB open and close function. # def test_district(self): #     ''' test district releate functions ''' #     self.assertEquals(a.d, True) #     self.assertEquals(a.fff, 0) #     self.assertEquals(a.t, '4')