Beispiel #1
0
	def test_case1(self):
		Data=[1,2,3,4]
		test=Mypickle()
		test.write('test.txt',Data)
		Out=test.read('test.txt')
		self.assertEqual(Data,Out)
Beispiel #2
0
	def test_case2(self):
		Data={1:'Hi',2:(2,3)}
		test=Mypickle()
		test.write('test.txt',Data)
		Out=test.read('test.txt')
		self.assertEqual(Data,Out)