From: Thanh Ha Date: Mon, 16 Mar 2015 04:13:50 +0000 (-0400) Subject: Fix pep8 violations in Common X-Git-Tag: release/helium-sr3~22^2 X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=commitdiff_plain;ds=sidebyside;h=6e258ee43ba1dd13d83810e63c393fec53f6a822;p=integration%2Ftest.git Fix pep8 violations in Common Change-Id: I79f525bf8abb5bc0149b54e13921ed1ab280c447 Signed-off-by: Thanh Ha --- diff --git a/test/tools/Robot_Tool/libraries/Common.py b/test/tools/Robot_Tool/libraries/Common.py index 000b2b868e..6eaa5a4ed5 100644 --- a/test/tools/Robot_Tool/libraries/Common.py +++ b/test/tools/Robot_Tool/libraries/Common.py @@ -9,6 +9,7 @@ import collections Common constants and functions for the robot framework. ''' + def collection_should_contain(collection, *members): """ Fail if not every members is in the collection. @@ -21,6 +22,7 @@ def collection_should_contain(collection, *members): else: return True + def combine_strings(*strings): """ Combines the given `strings` together and returns the result. @@ -28,7 +30,7 @@ def combine_strings(*strings): """ result = '' for s in strings: - if isinstance(s,str) or isinstance(s,unicode): + if isinstance(s, str) or isinstance(s, unicode): result += s if result == '': return None