Exemplo n.º 1
0
 def test_nextSlowIdleSlave_unavail(self):
     """Test that _nextSlowIdleSlave returns None if not enough slow
     slaves are available."""
     func = _nextSlowIdleSlave(5)
     slave = func(self.builder, self.slaves)
     self.assert_(slave is None)
Exemplo n.º 2
0
 def test_nextSlowIdleSlave_avail(self):
     """Test that _nextSlowIdleSlave returns a slow slave if enough slow
     slaves are available."""
     func = _nextSlowIdleSlave(1)
     slave = func(self.builder, self.slaves)
     self.assert_(slave.slave.slavename.startswith("slow"))
Exemplo n.º 3
0
 def test_nextSlowIdleSlave_avail(self):
     """Test that _nextSlowIdleSlave returns a slow slave if enough slow
     slaves are available."""
     func = _nextSlowIdleSlave(1)
     slave = func(self.builder, self.slaves)
     self.assert_(slave.slave.slavename.startswith("slow"))
Exemplo n.º 4
0
 def test_nextSlowIdleSlave_unavail(self):
     """Test that _nextSlowIdleSlave returns None if not enough slow
     slaves are available."""
     func = _nextSlowIdleSlave(5)
     slave = func(self.builder, self.slaves)
     self.assert_(slave is None)