- os.makedirs(dc_glade.Dialcentral._data_path)
-
- handle = dc_glade.Dialcentral()
- with test_utils.expected(AssertionError("Attempting login before app is fully loaded")):
- handle.refresh_session()
-
- for i in xrange(10):
- if handle._initDone:
- print "Completed init on iteration %d" % i
- break
- time.sleep(1)
- assert handle._initDone
-
- with test_utils.expected(RuntimeError("Login Failed")):
- handle.refresh_session()
-
- handle._save_settings()
-
- del handle