comparison src/test/helpers.py @ 997:b3f383ab39da

test: configuration/use of new logging system
author Goffi <goffi@goffi.org>
date Mon, 21 Apr 2014 20:04:52 +0200
parents e1842ebcb2f3
children f5761534e0f3
comparison
equal deleted inserted replaced
996:e99b6dfd567b 997:b3f383ab39da
27 from twisted.internet import defer 27 from twisted.internet import defer
28 from twisted.words.protocols.jabber.jid import JID 28 from twisted.words.protocols.jabber.jid import JID
29 from xml.etree import cElementTree as etree 29 from xml.etree import cElementTree as etree
30 from collections import Counter 30 from collections import Counter
31 import re 31 import re
32
33 ## logging configuration for tests ##
34 from sat.core import log
35 log.satConfigure()
32 36
33 37
34 def b2s(value): 38 def b2s(value):
35 """Convert a bool to a unicode string used in bridge 39 """Convert a bool to a unicode string used in bridge
36 @param value: boolean value 40 @param value: boolean value