Skip to content

Commit

Permalink
Test safe_title
Browse files Browse the repository at this point in the history
  • Loading branch information
Joel Collins committed Apr 22, 2020
1 parent 8dee595 commit aa9fb12
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/test_server_labthing.py
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,13 @@ def test_title(thing):
assert thing.spec.title == "title"


def test_safe_title(thing):
assert thing.title == ""
assert thing.safe_title == "unknown"
thing.title = "Example LabThing 001"
assert thing.safe_title == "examplelabthing001"


def test_version(thing):
assert thing.version == "0.0.0"
thing.version = "x.x.x"
Expand Down

0 comments on commit aa9fb12

Please sign in to comment.