Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
python-osc
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Analyze
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Andrew Haigh
python-osc
Commits
638f6b90
Commit
638f6b90
authored
9 years ago
by
attwad
Browse files
Options
Downloads
Patches
Plain Diff
added a test for the datagram when no args
parent
598d9836
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
pythonosc/test/test_osc_message_builder.py
+2
-0
2 additions, 0 deletions
pythonosc/test/test_osc_message_builder.py
with
2 additions
and
0 deletions
pythonosc/test/test_osc_message_builder.py
+
2
−
0
View file @
638f6b90
...
@@ -9,6 +9,8 @@ class TestOscMessageBuilder(unittest.TestCase):
...
@@ -9,6 +9,8 @@ class TestOscMessageBuilder(unittest.TestCase):
msg
=
osc_message_builder
.
OscMessageBuilder
(
"
/a/b/c
"
).
build
()
msg
=
osc_message_builder
.
OscMessageBuilder
(
"
/a/b/c
"
).
build
()
self
.
assertEqual
(
"
/a/b/c
"
,
msg
.
address
)
self
.
assertEqual
(
"
/a/b/c
"
,
msg
.
address
)
self
.
assertEqual
([],
msg
.
params
)
self
.
assertEqual
([],
msg
.
params
)
# Messages with just an address should still contain the ",".
self
.
assertEqual
(
b
'
/a/b/c
\x00\x00
,
\x00\x00\x00
'
,
msg
.
dgram
)
def
test_no_address_raises
(
self
):
def
test_no_address_raises
(
self
):
builder
=
osc_message_builder
.
OscMessageBuilder
(
""
)
builder
=
osc_message_builder
.
OscMessageBuilder
(
""
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment