generated from mochi-hpc/margo-microservice-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
29 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import unittest | ||
import json | ||
import mochi.flock.server as mfs | ||
import mochi.flock.view as view | ||
import pymargo.core | ||
|
||
class TestClient(unittest.TestCase): | ||
|
||
def test_init_provider(self): | ||
with pymargo.core.Engine("na+sm", pymargo.core.server) as engine: | ||
address = str(engine.address) | ||
config = { | ||
"group": { | ||
"type": "static", | ||
"config": {} | ||
} | ||
} | ||
initial_view = view.GroupView() | ||
initial_view.members.add(address, 42) | ||
provider = mfs.Provider(engine, 42, json.dumps(config), initial_view) | ||
del provider | ||
engine.finalize() | ||
|
||
|
||
if __name__ == '__main__': | ||
unittest.main() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters