예제 #1
0
	def test_explicit_self_constructing_pipeline(self):
		self.assertEqual(
				run_full('--no-input', 'pp = [1,2,3] | p + 1', None),
				'2\n3\n4\n')
예제 #2
0
	def test_self_constructing_pipeline(self):
		self.assertEqual(
				run_full('-n', '[1,2,3] | p + 1', None),
				'2\n3\n4\n')
예제 #3
0
	def test_separating_output_with_null_bytes(self):
		self.assertEqual(
				run_full('--print0', 'p + "_"', 'a\nb\nc'),
				'a_\000b_\000c_')
예제 #4
0
 def test_explicit_self_constructing_pipeline(self):
     self.assertEqual(run_full('--no-input', 'pp = [1,2,3] | p + 1', None),
                      '2\n3\n4\n')
예제 #5
0
 def test_self_constructing_pipeline(self):
     self.assertEqual(run_full('-n', '[1,2,3] | p + 1', None), '2\n3\n4\n')
예제 #6
0
 def test_separating_output_with_null_bytes(self):
     self.assertEqual(run_full('--print0', 'p + "_"', 'a\nb\nc'),
                      'a_\000b_\000c_')