Example #1
0
 def test_1(self):
     self.assertEqual([2, 1], Task1.func([1, 2]))
Example #2
0
 def test_2(self):
     self.assertEqual([24, 12, 8, 6], Task1.func([1, 2, 3, 4]))
Example #3
0
    def test_6(self):
        with patch('Task1.func') as obj:
            obj.return_value = self.get_result_from_txt()

            self.assertEqual([6, 3, 2], Task1.func([1, 2]))