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

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

src/s/y/synnefo-HEAD/snf-tools/synnefo_tools/burnin/server_tests.py   synnefo(Download)
        servers = [s for s in servers if s['id'] == self.server['id']]
 
        self.assertEqual(len(servers), 1)
        server = servers[0]
        self.assertEqual(server['name'], self.server['name'])
        self.assertEqual(server['flavor']['id'], self.use_flavor['id'])
        self.assertEqual(server['image']['id'], self.use_image['id'])
        self.assertEqual(server['status'], "BUILD")

src/s/y/synnefo-HEAD/snf-tools/synnefo_tools/burnin/network_tests.py   synnefo(Download)
        # Check that servers got private IPs
        ipv4 = self._get_ips(self.server_a['server'], network=self.network)
        self.assertEqual(len(ipv4), 1)
        self.server_a['pr_ipv4'] = ipv4[0]
        ipv4 = self._get_ips(self.server_b['server'], network=self.network)
        self.assertEqual(len(ipv4), 1)
            self.server_a['password'], cmd)
 
        self.assertEqual(status, 0)
        self.assertEqual(lines, ['True\n'])
 

src/s/y/synnefo-HEAD/snf-tools/synnefo_tools/burnin/projects_tests.py   synnefo(Download)
        # Check tenant_id
        self.server = self._get_server_details(self.server, quiet=True)
        self.assertEqual(self.server['tenant_id'], new_project)
 
        # Check new quotas