~wgrant/ubuntu/natty/landscape-client/natty-updates-broken

« back to all changes in this revision

Viewing changes to landscape/tests/test_sysvconfig.py

  • Committer: Bazaar Package Importer
  • Author(s): Free Ekanayaka
  • Date: 2010-04-21 19:58:10 UTC
  • mfrom: (1.1.16 upstream)
  • Revision ID: james.westby@ubuntu.com-20100421195810-s30uv3s6i27lue38
Tags: 1.5.2-0ubuntu0.10.10.0
* New upstream version (LP: #594594):
  - A new includes information about active network devices and their
    IP address in sysinfo output (LP: #272344).
  - A new plugin collects information about network traffic (#LP :284662).
  - Report information about which packages requested a reboot (LP: #538253).
  - Fix breakage on Lucid AMIs having no ramdisk (LP: #574810).
  - Migrate the inter-process communication system from DBus to Twisted AMP.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
import time
2
 
import os
3
 
 
4
1
from landscape.tests.helpers import LandscapeTest
5
2
 
6
3
from landscape.sysvconfig import SysVConfig, ProcessError
80
77
        sysvconfig = SysVConfig(filename)
81
78
        sysvconfig.stop_landscape()
82
79
 
83
 
    def test_stop_landscape(self):
 
80
    def test_stop_landscape_with_error(self):
84
81
        system = self.mocker.replace("os.system")
85
82
        system("/etc/init.d/landscape-client stop")
86
83
        self.mocker.result(-1)