~dobey/changeup/trunk

« back to all changes in this revision

Viewing changes to tests/test_client.py

  • Committer: Rodney Dawes
  • Date: 2010-02-08 22:37:29 UTC
  • Revision ID: rodney.dawes@canonical.com-20100208223729-r4bqi0x4j8yxb77q
Move client.py code into changeup/__init__.py
Add a .bzrignore
Add the COPYING
Add a build system
Update the dispatcher and test code to not use changeup.client

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
# with this program.  If not, see <http://www.gnu.org/licenses/>.
18
18
""" Tests for the changeup-dispatcher script """
19
19
 
20
 
from changeup import client
 
20
from changeup import register_restart_handler
21
21
from contrib.mocker import MockerTestCase
22
22
 
23
 
class DispatcherTests(MockerTestCase):
 
23
class RegistrationTests(MockerTestCase):
24
24
 
25
25
    def test_register_handler(self):
26
26
        """Test registering the dbus handler."""
28
28
            """Simple test handler."""
29
29
            pass
30
30
 
31
 
        client.register_restart_handler('changeup', testhandler)
 
31
        register_restart_handler('changeup', testhandler)
32
32
        self.mocker.replay()