File tree Expand file tree Collapse file tree 2 files changed +44
-0
lines changed
bandwidth/model/bxml/verbs Expand file tree Collapse file tree 2 files changed +44
-0
lines changed Original file line number Diff line number Diff line change 1+ """
2+ pause_recording.py
3+
4+ Bandwidth's PauseRecording BXML verb
5+
6+ @copyright Bandwidth INC
7+ """
8+ from ..terminal_verb import TerminalVerb
9+
10+
11+ class PauseRecording (TerminalVerb ):
12+
13+ def __init__ (self ):
14+ """Initialize a <PauseRecording> verb
15+ """
16+ super ().__init__ (tag = "PauseRecording" , content = None , attributes = None )
Original file line number Diff line number Diff line change 1+ """
2+ test_pause_recording.py
3+
4+ Unit tests for the <PauseRecording> BXML verb
5+
6+ @copyright Bandwidth Inc.
7+ """
8+ import pytest
9+ import unittest
10+
11+ from bandwidth .model .bxml .verb import Verb
12+ from bandwidth .model .bxml .verbs .pause_recording import PauseRecording
13+
14+
15+ class TestTag (unittest .TestCase ):
16+
17+ def setUp (self ):
18+ self .pause_recording = PauseRecording ()
19+ self .test_verb = Verb (tag = "test" )
20+
21+ def test_to_bxml (self ):
22+ expected = '<PauseRecording />'
23+ assert (expected == self .pause_recording .to_bxml ())
24+
25+ def test_add_verb (self ):
26+ with pytest .raises (AttributeError ):
27+ self .pause_recording .add_verb (self .test_verb )
28+
You can’t perform that action at this time.
0 commit comments