Create unit tests #3

Merged
tormakris merged 9 commits from testing into master 2020-03-31 21:49:57 +02:00
Showing only changes of commit 7a7643cfeb - Show all commits

View File

@ -197,9 +197,9 @@ def test_updateconsumer(httpserver):
consumerlocator.KNOWNCONSUMER = f"127.0.0.1:{port}"
locator = consumerlocator.ConsumerLocator(
uuid=generateduuid, communicator=comm)
assert locator.currentconsumer is not None
locator.learnconsumerlist();
ret = locator.updateconsumer()
assert locator.currentconsumer is not None
assert ret == f"127.0.0.1:{port}"