Browse Source

[1818] Add method to sleep for some seconds

Mukund Sivaraman 13 years ago
parent
commit
92c00e5601
1 changed files with 9 additions and 0 deletions
  1. 9 0
      tests/lettuce/features/terrain/bind10_control.py

+ 9 - 0
tests/lettuce/features/terrain/bind10_control.py

@@ -14,10 +14,19 @@
 # WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
 
 from lettuce import *
+import time
 import subprocess
 import re
 import json
 
+@step('sleep for (\d+) seconds')
+def wait_seconds(step, seconds):
+    """Sleep for some seconds.
+       Parameters:
+       seconds number of seconds to sleep for.
+    """
+    time.sleep(float(seconds))
+
 @step('start bind10(?: with configuration (\S+))?' +\
       '(?: with cmdctl port (\d+))?' +\
       '(?: with msgq socket file (\S+))?' +\