[ONOS-7039] [ONOS-7044] Fix PEP8 Warnings in TestON
Change-Id: Ied79ff9caff5487a6df50466307f757468d7ca3a
diff --git a/TestON/tests/FUNC/FUNCintent/dependencies/FuncIntentFunction.py b/TestON/tests/FUNC/FUNCintent/dependencies/FuncIntentFunction.py
index bdd0e74..1a7002b 100644
--- a/TestON/tests/FUNC/FUNCintent/dependencies/FuncIntentFunction.py
+++ b/TestON/tests/FUNC/FUNCintent/dependencies/FuncIntentFunction.py
@@ -1,5 +1,5 @@
"""
-Copyright 2015 Open Networking Foundation (ONF)
+Copyright 2015 Open Networking Foundation ( ONF )
Please refer questions to either the onos test mailing list at <onos-test@onosproject.org>,
the System Testing Plans and Results wiki page at <https://wiki.onosproject.org/x/voMg>,
@@ -8,7 +8,7 @@
TestON is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 2 of the License, or
- (at your option) any later version.
+ ( at your option ) any later version.
TestON is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
@@ -2077,8 +2077,8 @@
"""
intentResult = main.TRUE
stateCheckResults = main.Cluster.command( "checkIntentState",
- kwargs={ "intentsId":intentsId },
- returnBool=True, specificDriver=2 )
+ kwargs={ "intentsId": intentsId },
+ returnBool=True, specificDriver=2 )
if stateCheckResults:
main.log.info( itemName + ": Intents state check passed" )
else:
@@ -2093,8 +2093,8 @@
Returns main.TRUE or main.FALSE
"""
stateCheckResults = main.Cluster.command( "compareBandwidthAllocations",
- args=[ bandwidth ],
- returnBool=True, specificDriver=2 )
+ args=[ bandwidth ],
+ returnBool=True, specificDriver=2 )
if stateCheckResults:
main.log.info( itemName + ": bandwidth check passed" )
bandwidthResult = main.TRUE
@@ -2396,7 +2396,7 @@
else failed
"""
- main.log.info( "Checking encapsulated intent for " + tag + ".")
+ main.log.info( "Checking encapsulated intent for " + tag + "." )
HostJson = []
Jflows = main.Cluster.active( 0 ).CLI.flows( noCore=True )
try:
@@ -2435,6 +2435,7 @@
main.log.error( "Total " + PopTag + str( pop ) )
return main.FALSE
+
def ProtectedIntentCheck( main ):
intent = main.Cluster.active( 0 ).CLI.intents( jsonFormat=False )
if "Protection" in intent: