This repository has been archived by the owner on Jul 12, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
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
2 changed files
with
33 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
from __future__ import absolute_import | ||
from .fixtures import ButlerTest | ||
|
||
|
||
def test_init_server(): | ||
butler_server = ButlerTest.Server('http://localhost:8888', 'a', 'b', 'c', x=1, y=2, z=3) | ||
assert butler_server.butler._check_args == ('a', 'b', 'c') | ||
assert butler_server.butler._check_kwargs == {'x': 1, 'y': 2, 'z': 3} | ||
assert butler_server.butler._is_server is True | ||
assert butler_server.butler._is_client is False | ||
|
||
|
||
def test_init_client(): | ||
butler_client = ButlerTest.Client('http://localhost:8888', 'a', 'b', 'c', x=1, y=2, z=3) | ||
assert butler_client.butler._check_args == ('a', 'b', 'c') | ||
assert butler_client.butler._check_kwargs == {'x': 1, 'y': 2, 'z': 3} | ||
assert butler_client.butler._is_server is False | ||
assert butler_client.butler._is_client is True |