Skip to content

Instantly share code, notes, and snippets.

@alq666
Created November 28, 2011 23:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alq666/1402550 to your computer and use it in GitHub Desktop.
Save alq666/1402550 to your computer and use it in GitHub Desktop.
Testing tags
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