Skip to content

Commit f3fc2f6

Browse files
Updates to Forward
1 parent 126ea36 commit f3fc2f6

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

bandwidth/model/bxml/verbs/forward.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,7 @@ def __init__(
5454
self.uui = uui
5555

5656
super().__init__(tag="Forward")
57-
"""
58-
Don't need to define this since default for the parent class is `None`
57+
5958
@property
6059
def _attributes(self):
6160
return {

test/unit/bxml/test_forward.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class TestForward(unittest.TestCase):
1717
def setUp(self):
1818
self.forward = Forward(
1919
to="19195554321",
20-
from_="19195554322",
20+
_from="19195554322",
2121
call_timeout = "15",
2222
diversion_treatment="propagate",
2323
diversion_reason="away",
@@ -28,9 +28,9 @@ def setUp(self):
2828

2929
def test_to_bxml(self):
3030
if os.environ['PYTHON_VERSION'] == '3.7':
31-
expected = '<Forward callTimeout="15" diversionReason="away" diversionTreatment="propagate" from_="19195554322" to="19195554321" uui="93d6f3c0be5845960b744fa28015d8ede84bd1a4;encoding=base64,asdf;encoding=jwt" />'
31+
expected = '<Forward callTimeout="15" diversionReason="away" diversionTreatment="propagate" _from="19195554322" to="19195554321" uui="93d6f3c0be5845960b744fa28015d8ede84bd1a4;encoding=base64,asdf;encoding=jwt" />'
3232
else:
33-
expected = '<Forward to="19195554321" from_="19195554322" callTimeout="15" diversionTreatment="propagate" diversionReason="away" uui="93d6f3c0be5845960b744fa28015d8ede84bd1a4;encoding=base64,asdf;encoding=jwt" />'
33+
expected = '<Forward to="19195554321" _from="19195554322" callTimeout="15" diversionTreatment="propagate" diversionReason="away" uui="93d6f3c0be5845960b744fa28015d8ede84bd1a4;encoding=base64,asdf;encoding=jwt" />'
3434
assert(expected == self.forward.to_bxml())
3535

3636
def test_add_verb(self):

0 commit comments

Comments
 (0)