Revision: 165
Author: jprantan
Date: Mon Jul 12 06:11:08 2010
Log: Fixed unit tests.
http://code.google.com/p/robotframework-mabot/source/detail?r=165

Modified:
 /tags/mabot-0.7/utest/utils/test_lock.py

=======================================
--- /tags/mabot-0.7/utest/utils/test_lock.py    Tue Jul  6 07:13:29 2010
+++ /tags/mabot-0.7/utest/utils/test_lock.py    Mon Jul 12 06:11:08 2010
@@ -114,7 +114,7 @@
         try:
             orig_os_path_exists = lock_module.os.path.exists
             lock_module.os.path.exists = lambda x: True
- msg = "Could not read lock: [Errno 2] No such file or directory: '%s'" % (self.lock_path) + msg = "Could not read lock: [Errno 2] No such file or directory: %r" % self.lock_path
             assert_raises_with_msg(LockException, msg,
                                    self.lock._get_lock_file)
         finally:
@@ -124,7 +124,7 @@
         try:
             orig_os_path_exists = lock_module.os.path.exists
             lock_module.os.path.exists = lambda x: True
- msg = """Could not remove lock file. Could not read lock: [Errno 2] No such file or directory: '%s'""" % self.lock_path + msg = "Could not remove lock file. Could not read lock: [Errno 2] No such file or directory: %r" % self.lock_path assert_raises_with_msg(LockException, msg, self.lock.release_lock)
         finally:
             lock_module.os.path.exists = orig_os_path_exists

Reply via email to