diff options
author | Aaron Bentley <aaron.bentley@utoronto.ca> | 2005-03-20 19:43:09 +0000 |
---|---|---|
committer | Aaron Bentley <aaron.bentley@utoronto.ca> | 2005-03-20 19:43:09 +0000 |
commit | 5476a1f89dd1ef9491ade3c8f2012048a4492231 (patch) | |
tree | 28a1b03c6f0da6ac4dabf04d31762ba40b5f45f3 | |
parent | da5664e08b87e5ff479bd79e72ba9685f9cd7a4d (diff) | |
download | bugseverywhere-5476a1f89dd1ef9491ade3c8f2012048a4492231.tar.gz |
Fixed test cases so they're not machine-specific
-rw-r--r-- | libbe/cmdutil.py | 4 | ||||
-rw-r--r-- | libbe/plugin.py | 5 |
2 files changed, 5 insertions, 4 deletions
diff --git a/libbe/cmdutil.py b/libbe/cmdutil.py index b550eb0..7ce8ac2 100644 --- a/libbe/cmdutil.py +++ b/libbe/cmdutil.py @@ -69,8 +69,8 @@ def get_command(command_name): File "/home/abentley/be/libbe/cmdutil.py", line 60, in get_command raise UserError("Unknown command %s" % command_name) UserError: Unknown command asdf - >>> get_command("list") - <module 'becommands.list' from '/home/abentley/be/becommands/list.pyc'> + >>> repr(get_command("list")).startswith("<module 'becommands.list' from ") + True """ cmd = plugin.get_plugin("becommands", command_name.replace("-", "_")) if cmd is None: diff --git a/libbe/plugin.py b/libbe/plugin.py index 5f0fa4d..f567cbb 100644 --- a/libbe/plugin.py +++ b/libbe/plugin.py @@ -26,8 +26,9 @@ def get_plugin(prefix, name): """ >>> get_plugin("becommands", "asdf") is None True - >>> get_plugin("becommands", "list") - <module 'becommands.list' from '/home/abentley/be/becommands/list.pyc'> + >>> q = repr(get_plugin("becommands", "list")) + >>> q.startswith("<module 'becommands.list' from ") + True """ dirprefix = '/'.join(prefix.split('.')) command_path = os.path.join(plugin_path, dirprefix, name+".py") |