Exemplo n.º 1
0
    def setUp(self):
        def fake_get_active_tunnels():
            '''
            fake active tunnels for tests
            '''
            return [[12345]]

        # fake get_active_tunnels call
        libraries.get_active_tunnels = fake_get_active_tunnels
        # clear db
        self.db = utils.connect_to_db(settings.ENV)
        utils.remove_all_data(self.db)
Exemplo n.º 2
0
    def setUp(self):

        def fake_get_active_tunnels():
            '''
            fake active tunnels for tests
            '''
            return [12345]

        # fake get_active_tunnels call
        libraries.get_active_tunnels = fake_get_active_tunnels
        # clear db
        self.db = utils.connect_to_db(settings.ENV)
        utils.remove_all_data(self.db)
Exemplo n.º 3
0
 def tearDown(self):
     # clear db
     self.db = utils.connect_to_db(settings.ENV)
     utils.remove_all_data(self.db)
Exemplo n.º 4
0
 def tearDown(self):
     # clear db
     self.db = utils.connect_to_db(settings.ENV)
     utils.remove_all_data(self.db)