def test_wait_state_true(self): ''' Test a successful wait for state ''' self.assertTrue(haproxyconn.wait_state('test', 'server01'))
def test_wait_state_false(self): """ Test a failed wait for state, with a timeout of 0 """ self.assertFalse(haproxyconn.wait_state("test", "server02", "up", 0))
def test_wait_state_false(self): ''' Test a failed wait for state, with a timeout of 0 ''' self.assertFalse(haproxyconn.wait_state('test', 'server02', 'up', 0))
def test_wait_state_true(self): """ Test a successful wait for state """ self.assertTrue(haproxyconn.wait_state("test", "server01"))