Skip to content

Commit c300f2b

Browse files
committed
Correct BXML Unit Test Class names
1 parent 9baf6aa commit c300f2b

12 files changed

+29
-29
lines changed

test/unit/bxml/test_bridge.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
from bandwidth.model.bxml.verbs.bridge import Bridge
1414

1515

16-
class TestSipUri(unittest.TestCase):
16+
class TestBridge(unittest.TestCase):
1717

1818
def setUp(self):
1919
self.bridge = Bridge(

test/unit/bxml/test_bxml.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
from bandwidth.model.bxml.bxml import Bxml
1111

1212

13-
class TestTag(unittest.TestCase):
14-
13+
class TestBxml(unittest.TestCase):
14+
1515
def setUp(self):
1616
self.response = Bxml()
1717

test/unit/bxml/test_conference.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
from bandwidth.model.bxml.verb import Verb
1313
from bandwidth.model.bxml.verbs import *
1414

15-
class TestGather(unittest.TestCase):
16-
15+
class TestConference(unittest.TestCase):
16+
1717
def setUp(self):
1818
self.play_audio = PlayAudio(
1919
audio_uri="https://audio.url/audio1.wav"
@@ -49,14 +49,14 @@ def setUp(self):
4949
callback_timeout = "5",
5050
audio_and_recording_verbs=[self.play_audio, self.start_recording]
5151
)
52-
52+
5353
def test_to_bxml(self):
5454
if os.environ['PYTHON_VERSION'] == '3.7':
5555
expected = '<Conference callIdsToCoach="example-call-id" callbackTimeout="5" conferenceEventFallbackMethod="POST" conferenceEventFallbackUrl="backupexample.com/eventurl" conferenceEventMethod="POST" conferenceEventUrl="example.com/eventurl" fallbackPassword="pass" fallbackUsername="user" hold="false" mute="true" password="pass" tag="tag" username="user">conf1<PlayAudio>https://audio.url/audio1.wav</PlayAudio><StartRecording fileFormat="wav" multiChannel="true" password="pass" recordingAvailableMethod="POST" recordingAvailableUrl="example.com" tag="tag" username="user" /></Conference>'
5656
else:
5757
expected = '<Conference mute="true" hold="false" callIdsToCoach="example-call-id" conferenceEventUrl="example.com/eventurl" conferenceEventMethod="POST" conferenceEventFallbackUrl="backupexample.com/eventurl" conferenceEventFallbackMethod="POST" username="user" password="pass" fallbackUsername="user" fallbackPassword="pass" tag="tag" callbackTimeout="5">conf1<PlayAudio>https://audio.url/audio1.wav</PlayAudio><StartRecording recordingAvailableUrl="example.com" recordingAvailableMethod="POST" username="user" password="pass" tag="tag" fileFormat="wav" multiChannel="true" /></Conference>'
5858
assert(expected == self.conference.to_bxml())
59-
59+
6060
def test_add_verb(self):
6161
if os.environ['PYTHON_VERSION'] == '3.7':
6262
expected = '<Conference callIdsToCoach="example-call-id" callbackTimeout="5" conferenceEventFallbackMethod="POST" conferenceEventFallbackUrl="backupexample.com/eventurl" conferenceEventMethod="POST" conferenceEventUrl="example.com/eventurl" fallbackPassword="pass" fallbackUsername="user" hold="false" mute="true" password="pass" tag="tag" username="user">conf1<PlayAudio>https://audio.url/audio1.wav</PlayAudio><StartRecording fileFormat="wav" multiChannel="true" password="pass" recordingAvailableMethod="POST" recordingAvailableUrl="example.com" tag="tag" username="user" /><SpeakSentence>Hello there.</SpeakSentence></Conference>'

test/unit/bxml/test_pause_recording.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
from bandwidth.model.bxml.verbs.pause_recording import PauseRecording
1313

1414

15-
class TestTag(unittest.TestCase):
15+
class TestPauseRecording(unittest.TestCase):
1616

1717
def setUp(self):
1818
self.pause_recording = PauseRecording()

test/unit/bxml/test_redirect.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
from bandwidth.model.bxml.verbs.redirect import Redirect
1313

1414

15-
class TestRecord(unittest.TestCase):
15+
class TestRedirect(unittest.TestCase):
1616

1717
def setUp(self):
1818
self.redirect = Redirect("https://example.com/redirect")

test/unit/bxml/test_response.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
from bandwidth.model.bxml.response import Response
1111

1212

13-
class TestTag(unittest.TestCase):
14-
13+
class TestResponse(unittest.TestCase):
14+
1515
def setUp(self):
1616
self.response = Response()
1717

test/unit/bxml/test_resume_recording.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,16 @@
1212
from bandwidth.model.bxml.verbs.resume_recording import ResumeRecording
1313

1414

15-
class TestTag(unittest.TestCase):
16-
15+
class TestResumeRecording(unittest.TestCase):
16+
1717
def setUp(self):
1818
self.resume_recording = ResumeRecording()
1919
self.test_verb = Verb(tag="test")
20-
20+
2121
def test_to_bxml(self):
2222
expected = '<ResumeRecording />'
2323
assert(expected == self.resume_recording.to_bxml())
24-
24+
2525
def test_add_verb(self):
2626
with pytest.raises(AttributeError):
2727
self.resume_recording.add_verb(self.test_verb)

test/unit/bxml/test_start_gather.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
from bandwidth.model.bxml.verbs.start_gather import StartGather
1414

1515

16-
class TestPhoneNumber(unittest.TestCase):
17-
16+
class TestStartGather(unittest.TestCase):
17+
1818
def setUp(self):
1919
self.start_gather = StartGather(
2020
dtmf_url="https://example.com/startgather",
@@ -24,15 +24,15 @@ def setUp(self):
2424
tag="tag"
2525
)
2626
self.test_verb = Verb(tag="test")
27-
27+
2828
def test_to_bxml(self):
2929
if os.environ['PYTHON_VERSION'] == '3.7':
3030
expected = '<StartGather dtmfMethod="POST" dtmfUrl="https://example.com/startgather" password="pass" tag="tag" username="user" />'
3131
else:
3232
expected = '<StartGather dtmfUrl="https://example.com/startgather" dtmfMethod="POST" username="user" password="pass" tag="tag" />'
33-
33+
3434
assert(expected == self.start_gather.to_bxml())
35-
35+
3636
def test_add_verb(self):
3737
with pytest.raises(AttributeError):
3838
self.start_gather.add_verb(self.test_verb)

test/unit/bxml/test_start_recording.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
from bandwidth.model.bxml.verbs.start_recording import StartRecording
1414

1515

16-
class TestRecord(unittest.TestCase):
16+
class TestStartRecording(unittest.TestCase):
1717

1818
def setUp(self):
1919
self.start_recording = StartRecording(
@@ -29,14 +29,14 @@ def setUp(self):
2929
multi_channel = "true"
3030
)
3131
self.test_verb = Verb(tag="test")
32-
32+
3333

3434
def test_to_bxml(self):
3535
if os.environ['PYTHON_VERSION'] == '3.7':
3636
expected = '<StartRecording fileFormat="wav" multiChannel="true" password="pass" recordingAvailableMethod="POST" recordingAvailableUrl="example.com" tag="tag" transcribe="true" transcriptionAvailableMethod="POST" transcriptionAvailableUrl="transcription-example.com" username="user" />'
3737
else:
3838
expected = '<StartRecording recordingAvailableUrl="example.com" recordingAvailableMethod="POST" transcribe="true" transcriptionAvailableUrl="transcription-example.com" transcriptionAvailableMethod="POST" username="user" password="pass" tag="tag" fileFormat="wav" multiChannel="true" />'
39-
39+
4040
assert(expected == self.start_recording.to_bxml())
4141

4242

test/unit/bxml/test_stop_gather.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
from bandwidth.model.bxml.verbs.stop_gather import StopGather
1313

1414

15-
class TestTag(unittest.TestCase):
15+
class TestStopGather(unittest.TestCase):
1616

1717
def setUp(self):
1818
self.stop_gather = StopGather()

0 commit comments

Comments
 (0)