Logo Search packages:      
Sourcecode: ubuntuone-file-storage-api version File versions  Download package

def ubuntuone::filestorageapi::tests::test_volumes::UserDefinedFolderTestCase::test_from_dict (   self )
A Root volume can be build from a dict.

Definition at line 306 of file test_volumes.py.

        """A Root volume can be build from a dict."""
        volume = volumes.Volume.from_dict(FAKED_TOKEN, FAKED_UDF.copy())

        self.assertEqual(volume.type, volumes.UDF_TYPE)
        self.assertEqual(volume._credentials, FAKED_TOKEN)
        for key, val in FAKED_UDF.iteritems():
            self.assertTrue(hasattr(volume, key))
            self.assertEqual(getattr(volume, key), val)

Generated by  Doxygen 1.6.0   Back to index