Lines Matching refs:test_string
437 test_string = 'Reykjavik rocks, eow!'
443 s.pack_into(writable_buf, 0, test_string)
444 from_buf = tobytes(writable_buf)[:len(test_string)]
445 self.assertEqual(from_buf, test_string)
448 s.pack_into(writable_buf, 10, test_string)
449 from_buf = tobytes(writable_buf)[:len(test_string)+10]
450 self.assertEqual(from_buf, test_string[:10] + test_string)
455 test_string)
457 test_string)
474 test_string = 'Reykjavik rocks, eow!'
480 pack_into(writable_buf, 0, test_string)
481 from_buf = writable_buf.tostring()[:len(test_string)]
482 self.assertEqual(from_buf, test_string)
485 pack_into(writable_buf, 10, test_string)
486 from_buf = writable_buf.tostring()[:len(test_string)+10]
487 self.assertEqual(from_buf, test_string[:10] + test_string)
492 test_string)
494 test_string)