def test_feedParsing(self):
        parser = _v1parser.V1Parser()
        info, remaining = parser.feed(b'PROXY TCP4 127.0.0.1 127.0.0.1 ')
        self.assertFalse(info)
        self.assertFalse(remaining)
        info, remaining = parser.feed(b'8080 8888')
        self.assertFalse(info)
        self.assertFalse(remaining)
        info, remaining = parser.feed(b'\r\n')
        self.assertFalse(remaining)
        self.assertTrue(isinstance(info.source, address.IPv4Address))
        self.assertEqual(info.source.host, b'127.0.0.1')
        self.assertEqual(info.source.port, 8080)
        self.assertEqual(info.destination.host, b'127.0.0.1')
        self.assertEqual(info.destination.port, 8888)
Converts an unicode string to a filesystem safe filename.
dataset/ETHPy150Open twisted/twisted/twisted/protocols/haproxy/test/test_v1parser.py/V1ParserTests.test_feedParsing--crossover with--dataset/ETHPy150Open google/grr/grr/lib/data_stores/common.py/ConvertStringToFilename