File tree Expand file tree Collapse file tree 3 files changed +47
-0
lines changed
bandwidth/model/bxml/verbs Expand file tree Collapse file tree 3 files changed +47
-0
lines changed Original file line number Diff line number Diff line change 22from .phone_number import PhoneNumber
33from .record import Record
44from .sip_uri import SipUri
5+ from .stop_recording import StopRecording
56from .tag import Tag
67from .transfer import Transfer
Original file line number Diff line number Diff line change 1+ """
2+ record.py
3+
4+ Bandwidth's StopRecording BXML verb
5+
6+ @copyright Bandwidth INC
7+ """
8+ from ..terminal_verb import TerminalVerb
9+
10+
11+ class StopRecording (TerminalVerb ):
12+
13+ def __init__ (self ):
14+ """Initialize a <StopRecording> verb
15+
16+ Args: There are no args or text content for StopRecording
17+ """
18+
19+ super ().__init__ (tag = "StopRecording" , content = None )
Original file line number Diff line number Diff line change 1+ """
2+ test_stop_recording.py
3+
4+ Unit tests for the <StopRecording> 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 .stop_recording import StopRecording
13+
14+
15+ class TestTag (unittest .TestCase ):
16+
17+ def setUp (self ):
18+ self .stop_recording = StopRecording ()
19+ self .test_verb = Verb (tag = "test" )
20+
21+ def test_to_bxml (self ):
22+ expected = '<StopRecording />'
23+ assert (expected == self .stop_recording .to_bxml ())
24+
25+ def test_add_verb (self ):
26+ with pytest .raises (AttributeError ):
27+ self .stop_recording .add_verb (self .test_verb )
You can’t perform that action at this time.
0 commit comments