def test_update_command(): update = commands.update(test_context, []) assert update.reads_remote assert not update.writes_remote assert str(update) == "update"
def test_update_command_with_url(): update = commands.update(test_context, ["http://hg.mozilla.org/labs/bespin"]) assert update.source == "http://hg.mozilla.org/labs/bespin" assert str(update) == "update http://hg.mozilla.org/labs/bespin"
def test_update_command(): generic_update = commands.update(context, []) update = hg.update(generic_update) assert update.reads_remote assert not update.writes_remote assert update.get_command_line() == ["hg", "fetch"]