Permalink
Browse files

do not import wader config in core code, even if its a test

  • Loading branch information...
1 parent 0c6d598 commit 67ce4fb1f6ead1dbcde47bb0f6997bc3f34dec25 Pablo Martí Gamboa committed Mar 24, 2010
Showing with 4 additions and 2 deletions.
  1. +4 −2 plugins/contacts/mm/wader/test/test_contacts_mm.py
@@ -26,10 +26,12 @@
from twisted.python import log
from wader.plugins.mm_provider import mm_provider, MMContact
-from wader.common.config import config
from wader.common.consts import (WADER_SERVICE, WADER_INTFACE, WADER_OBJPATH,
MDM_INTFACE, CRD_INTFACE)
+CARD_PIN = "0000"
+
+
class TestModemManagerContactProvider(unittest.TestCase):
"""Test for the ModemManager IContactProvider"""
@@ -48,7 +50,7 @@ def enable_device_cb():
def enable_device_eb(e):
error = e.get_dbus_message()
if 'SimPinRequired' in error:
- pin = config.get('test', 'pin', '0000')
+ pin = CARD_PIN
self.device.SendPin(pin, dbus_interface=CRD_INTFACE,
reply_handler=enable_device_cb,
error_handler=log.err)

0 comments on commit 67ce4fb

Please sign in to comment.