Revision df25ac35
Améliorations pour pylint.
git-svn-id: https://vigilo-dev.si.c-s.fr/svn@2682 b22e2e97-25c9-44ff-b637-2e5ceca36478
vigiboard/tests/functional/test_raw_events_table.py | ||
---|---|---|
97 | 97 |
return aggregate.idcorrevent |
98 | 98 |
|
99 | 99 |
def add_masked_event(idcorrevent): |
100 |
"""Ajoute un événement masqué à un événement corrélé.""" |
|
100 | 101 |
transaction.begin() |
101 | 102 |
hostmanagers = SupItemGroup.by_group_name(u'managersgroup') |
102 | 103 |
nb_hosts = DBSession.query(Host).count() |
... | ... | |
254 | 255 |
# NB: la requête XPath est approchante, car XPath 1.0 ne permet pas |
255 | 256 |
# de rechercher directement une valeur dans une liste. Elle devrait |
256 | 257 |
# néanmoins suffire pour les besoins des tests. |
257 |
rows = response.lxml.xpath('//table[contains(@class, "vigitable")]/tbody/tr') |
|
258 |
rows = response.lxml.xpath( |
|
259 |
'//table[contains(@class, "vigitable")]/tbody/tr') |
|
258 | 260 |
assert_equal(len(rows), 1) |
259 | 261 |
|
260 | 262 |
class TestRawEventsTableWithPermsHost(TestRawEventsTableWithPermsLLS): |
Also available in: Unified diff