Commit e6ba29be authored by Quentin Defenouillere's avatar Quentin Defenouillere Committed by Romain Bignon

[cragr] Corrected perimeter matching

Matching perimeters can include " et " instead of " & " but also "et"
instead of "&" si I removed the spaces in order to check both
possibilities.

Closes: 8016@zendesk
parent e1812b01
......@@ -390,8 +390,9 @@ class ChgPerimeterPage(PerimeterPage):
self.get_current()
# sometimes the perimeter use " & " and sometimes " et "
# and can also be "&" instead of "et" (example: "metms" et "m&ms")
if not (self.browser.current_perimeter in self.browser.perimeters or
self.browser.current_perimeter.replace(' et ', ' & ') in self.browser.perimeters):
self.browser.current_perimeter.replace('et', '&') in self.browser.perimeters):
assert len(self.browser.perimeters) == 1
self.browser.perimeters.append(self.browser.current_perimeter)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment