~unity-2d-team/unity-2d/Shell-MultiMonitor

« back to all changes in this revision

Viewing changes to grackle/tests/test_client.py

  • Committer: Aaron Bentley
  • Date: 2012-01-10 14:44:37 UTC
  • mto: (6.1.30 trunk)
  • mto: This revision was merged to the branch mainline in revision 45.
  • Revision ID: aaron@canonical.com-20120110144437-8twijem7btu6664y
Test message path.

Show diffs side-by-side

added added

removed removed

Lines of Context:
10
10
 
11
11
from testtools import ExpectedException
12
12
 
13
 
from grackle.client import GrackleClient
 
13
from grackle.client import (
 
14
    GrackleClient,
 
15
    message_path,
 
16
    )
14
17
 
15
18
 
16
19
class Forked:
59
62
            with ExpectedException(Exception, 'wtf'):
60
63
                client.put_message('arch1', 'asdf',
61
64
                    StringIO('This is not a message'))
 
65
 
 
66
 
 
67
class TestMessagePath(TestCase):
 
68
 
 
69
    def test_message_path(self):
 
70
        self.assertEqual('/my%20/%3C', message_path('my ', '<'))