예제 #1
0
def test_udp_translate_ipv6():
    eq_(translate_server_spec("udp:[abcd:abcd::1]:5555"), (_pylibmc.server_type_udp, "abcd:abcd::1", 5555))
예제 #2
0
 def test_translate(self):
     self.assertEqual(
         translate_server_spec("111.122.133.144"),
         (_pylibmc.server_type_tcp, "111.122.133.144", 11211, 1))
예제 #3
0
def test_udp_translate():
    eq_(translate_server_spec("udp:199.299.399.499:5555"), (_pylibmc.server_type_udp, "199.299.399.499", 5555))
예제 #4
0
 def test_translate_with_weight_kwd(self):
     self.assertEqual(
         translate_server_spec("111.122.133.144", weight=2),
         (_pylibmc.server_type_tcp, "111.122.133.144", 11211, 2))
예제 #5
0
 def test_udp_translate_ipv6_with_weight(self):
     self.assertEqual(translate_server_spec("udp:[abcd:abcd::1]:5555:2"),
                      (_pylibmc.server_type_udp, "abcd:abcd::1", 5555, 2))
예제 #6
0
def test_udp_translate_ipv6():
    eq_(translate_server_spec("udp:[abcd:abcd::1]:5555"),
        (_pylibmc.server_type_udp, "abcd:abcd::1", 5555))
예제 #7
0
def test_translate_with_weight_kwd():
    eq_(translate_server_spec("111.122.133.144", weight=2),
        (_pylibmc.server_type_tcp, "111.122.133.144", 11211, 2))
예제 #8
0
def test_translate():
    eq_(translate_server_spec("111.122.133.144"),
        (_pylibmc.server_type_tcp, "111.122.133.144", 11211, 1))
예제 #9
0
 def test_udp_translate(self):
     self.assertEqual(
         translate_server_spec("udp:199.299.399.499:5555"),
         (_pylibmc.server_type_udp, "199.299.399.499", 5555, 1))
예제 #10
0
def test_translate_with_weight_kwd():
    eq_(translate_server_spec("111.122.133.144", weight=2),
        (_pylibmc.server_type_tcp, "111.122.133.144", 11211, 2))
예제 #11
0
def test_udp_translate_ipv6_with_weight():
    eq_(translate_server_spec("udp:[abcd:abcd::1]:5555:2"),
        (_pylibmc.server_type_udp, "abcd:abcd::1", 5555, 2))
예제 #12
0
def test_translate_with_weight_string():
    eq_(translate_server_spec("111.122.133.144:5555:2"),
        (_pylibmc.server_type_tcp, "111.122.133.144", 5555, 2))
예제 #13
0
def test_translate():
    eq_(translate_server_spec("111.122.133.144"),
        (_pylibmc.server_type_tcp, "111.122.133.144", 11211, 1))
예제 #14
0
def test_udp_translate_ipv6_with_weight():
    eq_(translate_server_spec("udp:[abcd:abcd::1]:5555:2"),
        (_pylibmc.server_type_udp, "abcd:abcd::1", 5555, 2))
예제 #15
0
def test_translate():
    eq_(translate_server_spec("111.122.133.144:5555"), (_pylibmc.server_type_tcp, "111.122.133.144", 5555))
예제 #16
0
 def test_udp_translate_ipv6(self):
     self.assertEqual(translate_server_spec("udp:[abcd:abcd::1]:5555"),
                      (_pylibmc.server_type_udp, "abcd:abcd::1", 5555, 1))
예제 #17
0
def test_udp_translate():
    eq_(translate_server_spec("udp:199.299.399.499:5555"),
        (_pylibmc.server_type_udp, "199.299.399.499", 5555))
예제 #18
0
 def test_translate_with_weight_string(self):
     self.assertEqual(
         translate_server_spec("111.122.133.144:5555:2"),
         (_pylibmc.server_type_tcp, "111.122.133.144", 5555, 2))
예제 #19
0
def test_translate():
    eq_(translate_server_spec("111.122.133.144:5555"),
        (_pylibmc.server_type_tcp, "111.122.133.144", 5555))
예제 #20
0
def test_translate_with_weight_string():
    eq_(translate_server_spec("111.122.133.144:5555:2"),
        (_pylibmc.server_type_tcp, "111.122.133.144", 5555, 2))