From 5476a1f89dd1ef9491ade3c8f2012048a4492231 Mon Sep 17 00:00:00 2001 From: Aaron Bentley Date: Sun, 20 Mar 2005 19:43:09 +0000 Subject: [PATCH] Fixed test cases so they're not machine-specific --- libbe/cmdutil.py | 4 ++-- 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") - + >>> repr(get_command("list")).startswith(">> get_plugin("becommands", "asdf") is None True - >>> get_plugin("becommands", "list") - + >>> q = repr(get_plugin("becommands", "list")) + >>> q.startswith("