aboutsummaryrefslogtreecommitdiff
path: root/tests/test_timer.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_timer.py')
-rw-r--r--tests/test_timer.py19
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/test_timer.py b/tests/test_timer.py
index e1672e72..4745030a 100644
--- a/tests/test_timer.py
+++ b/tests/test_timer.py
@@ -4,6 +4,25 @@ import RecordTimer
t = RecordTimer.RecordTimer()
+# generate a timer to test
+import xml.dom.minidom
+
+timer = RecordTimer.createTimer(xml.dom.minidom.parseString(
+"""
+ <timer
+ begin="10"
+ end="200"
+ serviceref="1:0:1:6DD2:44D:1:C00000:0:0:0:"
+ repeated="0"
+ name="Test Event Name"
+ description="Test Event Description"
+ afterevent="nothing"
+ eit="56422"
+ disabled="0"
+ justplay="0">
+</timer>""").childNodes[0])
+
+t.record(timer)
# run virtual environment
enigma.run()