def test_nextL10nSlave_unavail(self):
     """Test that _nextL10nSlave returns None if the first slow slave is not
     available."""
     func = _nextL10nSlave(1)
     available_slaves = [s for s in self.slaves if s.slave.slavename != "slow1"]
     slave = func(self.builder, available_slaves)
     self.assert_(slave is None)
Beispiel #2
0
 def test_nextL10nSlave_unavail(self):
     """Test that _nextL10nSlave returns None if the first slow slave is not
     available."""
     func = _nextL10nSlave(1)
     available_slaves = [s for s in self.slaves if s.slave.slavename != 'slow1']
     slave = func(self.builder, available_slaves)
     self.assert_(slave is None)
 def test_nextL10nSlave_avail(self):
     """Test that _nextL10nSlave returns a slow slave if the first slow
     slave is available."""
     func = _nextL10nSlave(1)
     slave = func(self.builder, self.slaves)
     self.assert_(slave.slave.slavename == "slow1")
Beispiel #4
0
 def test_nextL10nSlave_avail(self):
     """Test that _nextL10nSlave returns a slow slave if the first slow
     slave is available."""
     func = _nextL10nSlave(1)
     slave = func(self.builder, self.slaves)
     self.assert_(slave.slave.slavename == 'slow1')