tests: fixed log init in helpers (log init must be done before any call to a log method)

This commit is contained in:
Goffi 2014-04-23 12:01:59 +02:00
commit d89044dbbc

View file

@ -17,6 +17,11 @@
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
## logging configuration for tests ##
from sat.core import log
log.satConfigure()
from sat.core import exceptions
from constants import Const
from wokkel.xmppim import RosterItem
@ -30,10 +35,6 @@ from xml.etree import cElementTree as etree
from collections import Counter
import re
## logging configuration for tests ##
from sat.core import log
log.satConfigure()
def b2s(value):
"""Convert a bool to a unicode string used in bridge