'Test pause inside raw date receiving.'

def test_rawPausing(self):

    for packet_size in range(1, 10):
        t = proto_helpers.StringIOWithoutClosing()
        clock = task.Clock()
        a = LineTester(clock)
        a.makeConnection(protocol.FileWrapper(t))
        for i in range(((len(self.rawpauseBuf) // packet_size) + 1)):
            s = self.rawpauseBuf[(i * packet_size):((i + 1) * packet_size)]
            a.dataReceived(s)
        self.assertEqual(self.rawpauseOutput1, a.received)
        clock.advance(0)
        self.assertEqual(self.rawpauseOutput2, a.received)
