Exemple #1
0
 def test12(self):
     test12_list = ['blue']
     test12_dict = {'link_color': 'yellow'}
     test12_answer = ['red', 'blue', 'yellow', 'purple']
     self.assertEqual(funct('red', *test12_list, **test12_dict),
                      test12_answer)
Exemple #2
0
 def test10(self):
     test10_list = ['magenta', 'cyan', 'gray', 'chartreuse']
     test10_list2 = test10_list[:2]
     self.assertEqual(funct(*test10_list2, **self.test9_dict), test10_list)
Exemple #3
0
 def test11(self):
     test11_list = ['purple', 'green']
     test11_dict = {'visited_color': 'white'}
     test11_answer = ['blue', 'purple', 'green', 'white']
     self.assertEqual(funct('blue', *test11_list, **test11_dict),
                      test11_answer)
Exemple #4
0
 def test8(self):
     test8_list = [v for k, v in self.test8_dict.items()]
     self.assertEqual(funct(**self.test8_dict), test8_list)
Exemple #5
0
 def test9(self):
     test9_list = ['yellow', 'red', 'gray', 'chartreuse']
     self.assertEqual(funct(**self.test9_dict), test9_list)
Exemple #6
0
 def test6(self):
     self.assertEqual(funct(*self.test6_list), self.test6_list)
Exemple #7
0
 def test7(self):
     self.assertEqual(funct(*self.test7_list[:2]), self.test7_list)
Exemple #8
0
 def test5(self):
     self.assertEqual(funct('black', link_color='red', back_color='blue'),
                      self.test5_list)
Exemple #9
0
 def test4(self):
     self.assertEqual(funct(link_color='red', back_color='blue'),
                      self.test4_list)
Exemple #10
0
 def test3(self):
     self.assertEqual(funct('green', 'white', 'black', 'orange'),
                      self.test3_list)
Exemple #11
0
 def test2(self):
     self.assertEqual(funct('green', 'white'), self.test2_list)
Exemple #12
0
 def test1(self):
     self.assertEqual(funct(), self.deft1_list)