First import
create base structure with a first unit test darcs-hash:20060809201849-86b55-11969bedd39c27882a6b467c7360ac31fef9b6be.gz
This commit is contained in:
0
tests/__init__.py
Normal file
0
tests/__init__.py
Normal file
0
tests/jcl/__init__.py
Normal file
0
tests/jcl/__init__.py
Normal file
0
tests/jcl/jabber/__init__.py
Normal file
0
tests/jcl/jabber/__init__.py
Normal file
38
tests/jcl/jabber/test_feeder.py
Normal file
38
tests/jcl/jabber/test_feeder.py
Normal file
@@ -0,0 +1,38 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
##
|
||||
## test_feeder.py
|
||||
## Login : David Rousselie <dax@happycoders.org>
|
||||
## Started on Wed Aug 9 21:34:26 2006 David Rousselie
|
||||
## $Id$
|
||||
##
|
||||
## Copyright (C) 2006 David Rousselie
|
||||
## This program is free software; you can redistribute it and/or modify
|
||||
## it under the terms of the GNU General Public License as published by
|
||||
## the Free Software Foundation; either version 2 of the License, or
|
||||
## (at your option) any later version.
|
||||
##
|
||||
## This program is distributed in the hope that it will be useful,
|
||||
## but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
## GNU General Public License for more details.
|
||||
##
|
||||
## You should have received a copy of the GNU General Public License
|
||||
## along with this program; if not, write to the Free Software
|
||||
## Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
##
|
||||
|
||||
import unittest
|
||||
from sqlobject import *
|
||||
|
||||
from jcl.jabber.component import Feeder
|
||||
from jcl.model.account import Account
|
||||
|
||||
class Feeder_TestCase(unittest.TestCase):
|
||||
def setUp(self):
|
||||
connection = sqlhub.processConnection = connectionForURI('sqlite:/:memory:')
|
||||
Account.createTable()
|
||||
|
||||
def test_feed_exist(self):
|
||||
feeder = Feeder()
|
||||
feeder.feed(Account(jid="test@jid.com", name="test"))
|
||||
self.assertTrue(True)
|
||||
Reference in New Issue
Block a user