~shanepatrickfagan/ubuntu-sso-client/nm-state-bug-fix

« back to all changes in this revision

Viewing changes to ubuntu_sso/networkstate/tests/test_linux.py

  • Committer: Shane Fagan
  • Date: 2011-06-02 15:04:14 UTC
  • Revision ID: shanepatrickfagan@ubuntu.com-20110602150414-hrgazbv0ze27kdl3
made the code a lot cleaner and did the suggestions that the guys said but still no tests. Will do them next

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
 
22
22
from ubuntu_sso.networkstate import (NetworkManagerState,
23
23
                                     ONLINE, OFFLINE, UNKNOWN)
24
 
from ubuntu_sso.networkstate.linux import  (DBUS_UNKNOWN_SERVICE,
25
 
                                            NM_STATE_DISCONNECTED,
26
 
                                            NM_STATE_CONNECTING,
27
 
                                            NM_STATE_CONNECTED)
 
24
from ubuntu_sso.networkstate.linux import  (DBUS_UNKNOWN_SERVICE)
28
25
 
29
26
from mocker import ARGS, KWARGS, ANY, MockerTestCase
30
27
 
 
28
UNKNOWN = 0
 
29
 
31
30
 
32
31
class TestException(Exception):
33
32
    """An exception to test error conditions."""