예제 #1
0
파일: test.py 프로젝트: tshev/Archive
 def test_dict_from_lists_3(self):
   dict1 = dict_from_lists(self.longer_list, self.shorter_list)
   self.assertEqual(dict1[1], self.shorter_list[0])
예제 #2
0
파일: test.py 프로젝트: tshev/Archive
 def test_dict_from_lists_1(self):
   dict1 = dict_from_lists(self.longer_list, self.shorter_list)
   self.assertEqual(dict1[4], None)
예제 #3
0
파일: test.py 프로젝트: tshev/Archive
 def test_dict_from_lists_2(self):
   dict2 = dict_from_lists(self.shorter_list, self.longer_list)
   self.assertEqual(len(dict2), len(self.shorter_list))