~ubuntu-branches/ubuntu/precise/ubuntu-sso-client/precise

« back to all changes in this revision

Viewing changes to ubuntu_sso/utils/tests/test_txsecrets.py

Tags: upstream-1.3.2
ImportĀ upstreamĀ versionĀ 1.3.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
371
371
    clxn_label_property = txsecrets.CLXN_LABEL_PROPERTY
372
372
    collections_property = txsecrets.COLLECTIONS_PROPERTY
373
373
 
 
374
    # pylint: disable=W0221
 
375
    @dbus.service.method(dbus_interface=txsecrets.SERVICE_IFACE,
 
376
                         in_signature="a{sv}s", out_signature="oo")
 
377
    def CreateCollection(self, properties, alias):
 
378
        """Create a new collection with the specified properties."""
 
379
        collection, prompt = super(AltSecretServiceMock,
 
380
                                   self).CreateCollection(properties)
 
381
        self.SetAlias(alias, collection)
 
382
        return collection, prompt
 
383
    # pylint: enable=W0221
 
384
 
374
385
 
375
386
def create_object_path(base):
376
387
    """Create a random object path given a base path."""