From f738fad623120ba5a59a3198e80b1ecc484de30a Mon Sep 17 00:00:00 2001
From: Rafael Monnerat <rafael@nexedi.com>
Date: Thu, 17 Feb 2011 13:12:23 +0000
Subject: [PATCH] Follow up recent changes on AudioField.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@43420 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 product/ERP5Form/tests/testAudioField.py | 19 +++++++------------
 1 file changed, 7 insertions(+), 12 deletions(-)

diff --git a/product/ERP5Form/tests/testAudioField.py b/product/ERP5Form/tests/testAudioField.py
index 106b83537d..91dd906d5c 100644
--- a/product/ERP5Form/tests/testAudioField.py
+++ b/product/ERP5Form/tests/testAudioField.py
@@ -28,11 +28,6 @@
 
 from Products.ERP5Type.tests.ERP5TypeTestCase import ERP5TypeTestCase
 from Products.ERP5Form.AudioField import AudioField
-from AccessControl.SecurityManagement import newSecurityManager
-from Products.ERP5Type.tests.Sequence import SequenceList
-from Products.ERP5Type.Globals import get_request
-from StringIO import StringIO
-from DateTime import DateTime
 
 
 class TestAudioField(ERP5TypeTestCase):
@@ -50,17 +45,17 @@ class TestAudioField(ERP5TypeTestCase):
     self.field.values['default'] = 'Audio content'
 
     self.assertEquals('<audio preload="preload" src="Audio content" ' +
-        'loop="none" controls="controls" autoplay="" >\nYour browser does not ' +
+        'controls="controls" >\nYour browser does not ' +
         'support audio tag.</audio>', self.field.render_view(value='Audio content'))
 
-    self.field.values['audio_preload'] = 'none'
-    self.field.values['audio_loop'] = 'True'
-    self.field.values['audio_controls'] = 'none'
-    self.field.values['audio_autoplay'] = 'autoplay'
+    self.field.values['audio_preload'] = False
+    self.field.values['audio_loop'] = True
+    self.field.values['audio_controls'] = False
+    self.field.values['audio_autoplay'] = True
     self.field.values['audio_error_message'] = 'Another error message'
 
-    self.assertEquals('<audio preload="none" src="Another Audio content" ' +
-        'loop="True" controls="none" autoplay="autoplay" >\nAnother error ' +
+    self.assertEquals('<audio src="Another Audio content" ' +
+        'loop="loop" autoplay="autoplay" >\nAnother error ' +
         'message</audio>', self.field.render_view(value='Another Audio content'))
 
 import unittest
-- 
2.30.9