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

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

src/s/y/synnefo-HEAD/snf-tools/synnefo_tools/burnin/cyclades_common.py   synnefo(Download)
        self.assertEqual(server['status'], "BUILD")
        if project_id is None:
            project_id = self._get_uuid()
        self.assertEqual(server['tenant_id'], project_id)
 
        # Verify quotas
        if project_id is None:
            project_id = self._get_uuid()
        changes = \
            {project_id: [(QNET, QADD, 1, None)]}
        # Verify quotas
        changes = \
            {self._get_uuid(): [(QNET, QREMOVE, len(networks), None)]}
        self._check_quotas(changes)
 
            # Verify quotas
            if project_id is None:
                project_id = self._get_uuid()
            changes = \
                {project_id: [(QIP, QADD, 1, None)]}

src/s/y/synnefo-HEAD/snf-tools/synnefo_tools/burnin/images_tests.py   synnefo(Download)
        # Verify quotas
        changes = \
            {self._get_uuid(): [(QPITHOS, QADD, file_size, None)]}
        self._check_quotas(changes)
 
    def test_009_register_image(self):
        """Register image to Plankton"""
        location = "pithos://" + self._get_uuid() + \
        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

src/s/y/synnefo-HEAD/snf-tools/synnefo_tools/burnin/astakos_tests.py   synnefo(Download)
    def test_002_name2uuid(self):
        """Test that usernames2uuids and uuids2usernames are complementary"""
        our_uuid = self._get_uuid()
 
        given_name = self.clients.astakos.get_usernames([our_uuid])