Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(3)  |  Call(0)  |  Derive(0)  |  Import(3)

src/s/y/synnefo-HEAD/snf-tools/synnefo_tools/burnin/cyclades_common.py   synnefo(Download)
from kamaki.clients import ClientError
 
from synnefo_tools.burnin.common import BurninTests, MB, GB, QADD, QREMOVE, \
    QDISK, QVM, QRAM, QIP, QCPU, QNET
 
                self.clients.compute.get_flavor_details(server['flavor']['id'])
            new_changes = [
                (QDISK, QREMOVE, flavor['disk'], GB),
                (QVM, QREMOVE, 1, None),
                (QRAM, QREMOVE, flavor['ram'], MB),
                (QCPU, QREMOVE, flavor['vcpus'], None)]

src/s/y/synnefo-HEAD/snf-tools/synnefo_tools/burnin/pithos_tests.py   synnefo(Download)
from tempfile import NamedTemporaryFile
 
from synnefo_tools.burnin.common import BurninTests, Proper, \
    QPITHOS, QADD, QREMOVE
from kamaki.clients import ClientError

src/s/y/synnefo-HEAD/snf-tools/synnefo_tools/burnin/images_tests.py   synnefo(Download)
from kamaki.clients import ClientError
 
from synnefo_tools.burnin.common import BurninTests, Proper, \
    QPITHOS, QADD, QREMOVE
 
        file_size = os.path.getsize(self.temp_image_file)
        changes = \
            {self._get_uuid(): [(QPITHOS, QREMOVE, file_size, None)]}
        self._check_quotas(changes)
        self.temp_image_name = None