コード例 #1
0
 def test_2(self):
     """Test the sample_function with a single argument."""
     self.assertEqual(sample_function(4), 8)
コード例 #2
0
 def test_1(self):
     """Test the sample_function with two arguments."""
     self.assertEqual(sample_function(4, 4), 8)