def test_reverse(self):
     ct = get_hosts_ordering_from_string("reverse")
     self.assertEqual(ct, HostsOrdering.REVERSE)
 def test_random(self):
     ct = get_hosts_ordering_from_string("random")
     self.assertEqual(ct, HostsOrdering.RANDOM)
 def test_none_or_empty(self):
     ct = get_hosts_ordering_from_string(None)
     self.assertIsNone(ct)
     ct = get_hosts_ordering_from_string('')
     self.assertIsNone(ct)
 def test_sequential(self):
     ct = get_hosts_ordering_from_string("sequential")
     self.assertEqual(ct, HostsOrdering.SEQUENTIAL)
 def test_invalid(self):
     with self.assertRaises(InvalidArgument):
         get_hosts_ordering_from_string('foo')