~ubuntu-desktop/oneconf/precise

« back to all changes in this revision

Viewing changes to oneconf/networksync/infraclient_fake.py

  • Committer: Didier Roche
  • Date: 2012-01-04 17:09:56 UTC
  • Revision ID: didier.roche@canonical.com-20120104170956-nmahuov13h0zqbgs
add all errors testing, and fix a bug when an error occurs (LP: #908759)

Show diffs side-by-side

added added

removed removed

Lines of Context:
39
39
    def __init__(self, fake_settings_filename = None):
40
40
        super(WebCatalogAPI, self).__init__()
41
41
        self.silo = FakeWebCatalogSilo(fake_settings_filename)
 
42
        self.silo.save_settings(WEBCATALOG_SILO_RESULT)
42
43
 
43
44
    def machineuuid_exist(self, machine_uuid):
44
45
        '''Generic method to check before doing an update operation that the machine_uuid exist in the host list'''