[asterisk-commits] dlee: testsuite/asterisk/trunk r3824 - /asterisk/trunk/lib/python/asterisk/
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Thu Jun 6 15:35:45 CDT 2013
Author: dlee
Date: Thu Jun 6 15:35:43 2013
New Revision: 3824
URL: http://svnview.digium.com/svn/testsuite?view=rev&rev=3824
Log:
Allow test config to specify counts as integers
Modified:
asterisk/trunk/lib/python/asterisk/ami.py
Modified: asterisk/trunk/lib/python/asterisk/ami.py
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/lib/python/asterisk/ami.py?view=diff&rev=3824&r1=3823&r2=3824
==============================================================================
--- asterisk/trunk/lib/python/asterisk/ami.py (original)
+++ asterisk/trunk/lib/python/asterisk/ami.py Thu Jun 6 15:35:43 2013
@@ -26,7 +26,11 @@
if 'count' in instance_config:
count = instance_config['count']
- if count[0] == '<':
+ if isinstance(count, int):
+ # Need exactly this many events
+ self.count_min = count
+ self.count_max = count
+ elif count[0] == '<':
# Need at most this many events
self.count_min = 0
self.count_max = int(count[1:])
More information about the asterisk-commits
mailing list