# Path: test_sample/function_as_sample.py
# def multiply(x, y):
# 
#     return x * y+3
# 
# def add_and_multiply(x, y):
# 
#     addition = x + y
#     multiple = multiply(x, y)
# 
#     return (addition, multiple)


from test_sample.function_as_sample import multiply,add_and_multiply
import unittest
import mock
'''

'''
class TestFunctions(unittest.TestCase):
    # replace the function:multiply that we import
    # if not decorated,the function imported is used
    @mock.patch('test_sample.function_as_sample.multiply')
    def test_add_and_multiply(self,mock_multiply):

        x = 3
        y = 5
        mock_multiply.return_value = 15


# Path: test_sample/function_as_sample.py
# def multiply(x, y):
# 
#     return x * y+3
# 
# def add_and_multiply(x, y):
# 
#     addition = x + y
#     multiple = multiply(x, y)
# 
#     return (addition, multiple)


# Path: tests/test_function_sample.py
from test_sample.function_as_sample import multiply,add_and_multiply
import unittest
import mock

'''

'''
class TestFunctions(unittest.TestCase):
    # replace the function:multiply that we import
    # if not decorated,the function imported is used
    @mock.patch('test_sample.function_as_sample.multiply')
    def test_add_and_multiply(self,mock_multiply):

        x = 3
        y = 5
        mock_multiply.return_value = 15


        addition, multiple = add_and_multiply(x, y)