File tree Expand file tree Collapse file tree 2 files changed +9
-5
lines changed
bandwidth/model/bxml/verbs Expand file tree Collapse file tree 2 files changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -10,8 +10,11 @@ def __init__(self, duration:str=None):
1010 Args:
1111 duration (str, optional): The time in seconds to pause. Default value is 1.
1212 """
13- self .attributes = {
14- "duration" : duration
15- }
13+ self .duration = duration
1614
17- super ().__init__ (tag = "Pause" , content = None , attributes = self .attributes )
15+ super ().__init__ (tag = "Pause" , content = None )
16+ @property
17+ def _attributes (self ):
18+ return {
19+ "duration" : self .duration
20+ }
Original file line number Diff line number Diff line change 77"""
88import pytest
99import unittest
10-
10+ from bandwidth . model . bxml . verb import Verb
1111from bandwidth .model .bxml .verbs .pause import Pause
1212
1313class TestPause (unittest .TestCase ):
1414
1515 def setUp (self ):
1616 self .pause = Pause (duration = "30" )
17+ self .test_verb = Verb (tag = "test" )
1718
1819 def test_to_bxml (self ):
1920 expected = '<Pause duration="30" />'
You can’t perform that action at this time.
0 commit comments