[orca/new-settings] Added import feature tests
- From: Alejandro Leiva <aleiva src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca/new-settings] Added import feature tests
- Date: Thu, 28 Oct 2010 15:37:24 +0000 (UTC)
commit cf7f515d7c464b7f4172da5ae4725370d90e0707
Author: Javier Hernández Antúnez <jhernandez emergya es>
Date: Thu Oct 28 15:14:33 2010 +0200
Added import feature tests
test/harness/settings_test.py | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/test/harness/settings_test.py b/test/harness/settings_test.py
index 126bac6..162f7f7 100644
--- a/test/harness/settings_test.py
+++ b/test/harness/settings_test.py
@@ -58,6 +58,15 @@ def exerciseBackendAPI(backendName, profile):
#settingsManager.setFirstStart()
print "\n\n===========================================================\n\n"
+ print "\n\nTesting import from a file"
+ print "\n==========================================================="
+ availableProfilesBefore = settingsManager.availableProfiles()
+ print "\nAvailable Profiles BEFORE the import => ", availableProfilesBefore
+ settingsManager.importProfile('importFile.conf')
+ availableProfilesAfter = settingsManager.availableProfiles()
+ print "\nAvailable Profiles AFTER the import => ", availableProfilesAfter
+
+
def getSettingsFromFile(dictName):
fileName = '%sSettings.conf' % dictName
try:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]