Created
November 28, 2011 23:15
-
-
Save alq666/1402550 to your computer and use it in GitHub Desktop.
Testing tags
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
diff --git a/tests/test_simpleclient.py b/tests/test_simpleclient.py | |
index d30ff1f..69cb2b4 100644 | |
--- a/tests/test_simpleclient.py | |
+++ b/tests/test_simpleclient.py | |
@@ -75,11 +75,13 @@ class TestSimpleClient(unittest.TestCase): | |
assert now_event['text'] == now_message | |
assert before_event['text'] == before_message | |
- event_id = dog.event('test host and device', 'test host an device', host='test.host', device_name='test.device') | |
+ event_id = dog.event('test host and device', 'test host an device', host='test.host', device_name='test.device', tags=["test-tag-1", "test-tag-2"]) | |
event = dog.get_event(event_id) | |
assert event['host'] == 'test.host' | |
assert event['device_name'] == 'test.device' | |
+ assert "test-tag-1" in event['tags'] | |
+ assert "test-tag-2" in event['tags'] | |
def test_comments(self): | |
now = datetime.datetime.now() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment