From 94abeeabb98c0c32e5aaf70896f58ee39edbdc10 Mon Sep 17 00:00:00 2001
From: Brian O'Connor <bocon13@gmail.com>
Date: Tue, 10 Sep 2013 14:54:02 -0700
Subject: [PATCH] cleaned up and commented test_cpu.py

---
 examples/test/test_cpu.py | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/examples/test/test_cpu.py b/examples/test/test_cpu.py
index a0598cfa..dd354908 100755
--- a/examples/test/test_cpu.py
+++ b/examples/test/test_cpu.py
@@ -1,19 +1,20 @@
 #!/usr/bin/env python
 
-"""TEST"""
+"""
+Test for cpu.py
+"""
 
 import unittest
 import pexpect
-from mininet.log import setLogLevel
 
 class testCPU( unittest.TestCase ):
-    "Test ping with single switch topology (common code)."
 
     prompt = 'mininet>'
 
     def testCPU( self ):
-        opts = [ '([a-z]+)\t([\d\.]+)%\t([\d\.]+)', pexpect.EOF ]
+        "Verify that CPU utilization is monotonically decreasing for each scheduler"
         p = pexpect.spawn( 'python -m mininet.examples.cpu' )
+        opts = [ '([a-z]+)\t([\d\.]+)%\t([\d\.]+)', pexpect.EOF ]
         scheds = []
         while True:
             index = p.expect( opts, timeout=600 )
@@ -32,5 +33,4 @@ def testCPU( self ):
         self.assertTrue( len( scheds ) > 0 )
 
 if __name__ == '__main__':
-    setLogLevel( 'warning' )
     unittest.main()
-- 
GitLab