Module: check_mk
Branch: master
Commit: 6956cb77766188f5f0fc1df00db1e430567a7be1
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=6956cb77766188…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Tue Apr 4 09:22:40 2017 +0200
Updated tests to match new HTML code rendering
Change-Id: I0c8991aecc72fc8a30fd90cefa683de975051cf6
---
tests/testlib/__init__.py | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/tests/testlib/__init__.py b/tests/testlib/__init__.py
index aea9389..8e25b9f 100644
--- a/tests/testlib/__init__.py
+++ b/tests/testlib/__init__.py
@@ -837,7 +837,9 @@ class CMKWebSession(WebSession):
profile_page = self.get("user_profile.py").text
assert "name=\"language\"" in profile_page
- assert "value=\""+lang+"\"" in profile_page
+
+ if lang:
+ assert "value=\""+lang+"\"" in profile_page
r = self.post("user_profile.py", data={
"filled_in" : "profile",