Пример #1
0
    def test_with_port(self):
        result = format_utils.format_ipv4(self.IP_SEQUENCE, port=8080)

        self.assertEqual(result, '127.0.0.1:8080')
Пример #2
0
    def test_sequence(self):
        result = format_utils.format_ipv4(self.IP_SEQUENCE)

        self.assertEqual(result, '127.0.0.1')
Пример #3
0
    def test_integer(self):
        result = format_utils.format_ipv4(self.IP_INTEGER)

        self.assertEqual(result, '127.0.0.1')
Пример #4
0
    def test_with_port(self):
        result = format_utils.format_ipv4(self.IP_SEQUENCE, port=8080)

        self.assertEqual(result, '127.0.0.1:8080')
Пример #5
0
    def test_sequence(self):
        result = format_utils.format_ipv4(self.IP_SEQUENCE)

        self.assertEqual(result, '127.0.0.1')
Пример #6
0
    def test_integer(self):
        result = format_utils.format_ipv4(self.IP_INTEGER)

        self.assertEqual(result, '127.0.0.1')