[asterisk-commits] pabelanger: branch pabelanger/testClass r1111 - /asterisk/team/pabelanger/tes...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed Dec 8 14:53:50 CST 2010


Author: pabelanger
Date: Wed Dec  8 14:53:46 2010
New Revision: 1111

URL: http://svnview.digium.com/svn/testsuite?view=rev&rev=1111
Log:
Rename asterisk_class to ast

Modified:
    asterisk/team/pabelanger/testClass/lib/python/asterisk/TestCase.py

Modified: asterisk/team/pabelanger/testClass/lib/python/asterisk/TestCase.py
URL: http://svnview.digium.com/svn/testsuite/asterisk/team/pabelanger/testClass/lib/python/asterisk/TestCase.py?view=diff&rev=1111&r1=1110&r2=1111
==============================================================================
--- asterisk/team/pabelanger/testClass/lib/python/asterisk/TestCase.py (original)
+++ asterisk/team/pabelanger/testClass/lib/python/asterisk/TestCase.py Wed Dec  8 14:53:46 2010
@@ -13,7 +13,7 @@
 from asterisk import Asterisk
 
 class TestCase(object):
-    asterisk_class = []
+    ast = []
 
     def __init__(self, argv):
         # get version info
@@ -29,21 +29,21 @@
     def create_asterisk(self, count=1):
         for c in range(count):
             print "Creating Asterisk instance %d..." % (c + 1)
-            self.asterisk_class.append(Asterisk(base=self.options.base))
+            self.ast.append(Asterisk(base=self.options.base))
             # Copy shared config files
-            self.asterisk_class[c].install_configs("%s/configs" %
+            self.ast[c].install_configs("%s/configs" %
                     (self.options.test_name))
             # Copy test specific config files
-            self.asterisk_class[c].install_configs("%s/configs/ast%d" %
+            self.ast[c].install_configs("%s/configs/ast%d" %
                     (self.options.test_name, c + 1))
 
     def start_asterisk(self):
-        for index, item in enumerate(self.asterisk_class):
+        for index, item in enumerate(self.ast):
             print "Starting Asterisk instance %d..." % (index + 1)
-            self.asterisk_class[index].start()
+            self.ast[index].start()
 
     def stop_asterisk(self):
-        for index, item in enumerate(self.asterisk_class):
+        for index, item in enumerate(self.ast):
             print "Stopping Asterisk instance %d..." % (index + 1)
-            self.asterisk_class[index].stop()
+            self.ast[index].stop()
 




More information about the asterisk-commits mailing list