示例#1
0
def test_icommand_list_profiles():
    set_up()
    settings.update({
        'path': 'append_test'
    }).save()
    Create.run(mock_options)
    settings.update({
        'path': 'iprofiles'
    }).save()
    cmd = ICommand(_autorun=False)
    cmd.settings = settings
    cmd.list_profiles('iprofiles')
    tear_down()
示例#2
0
def test_icommand_check_settings():
    cmd = ICommand(_autorun=False)
    cmd.settings = Settings()
    cmd.settings.clear()
    assert not cmd.check_settings()