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

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

src/s/y/synnefo-HEAD/snf-tools/synnefo_tools/burnin/stale_tests.py   synnefo(Download)
    def test_002_delete_stale_servers(self):
        """Delete staled servers (servers left from previous runs)"""
        len_stale = len(self.stale_servers)
        if not self.delete_stale and len_stale != 0:
            self.fail("Use --delete-stale flag to delete stale servers")
    def test_002_delete_stale_ips(self):
        """Delete staled floating IPs"""
        len_stale = len(self.stale_ips)
        if not self.delete_stale and len_stale != 0:
            self.fail("Use --delete-stale flag to delete stale floating IPs")
    def test_002_delete_stale_networks(self):
        """Delete staled networks (networks left from previous runs)"""
        len_stale = len(self.stale_networks)
        if not self.delete_stale and len_stale != 0:
            self.fail("Use --delete-stale flag to delete stale networks")