import unittest
import mock


class TestMyCode(unittest.TestCase):

    @mock.patch('nose_tests.fsample.app.OTHER_VAR')
    @mock.patch('nose_tests.fsample.remove3.DO_IMPORT')
    def test_my_func(self, mock_import, mock_other):
        mock_import.return_value = True
        mock_other.return_value = 'others'
        from nose_tests.fsample import my_code
        ret = my_code.my_func()
        self.assertTrue(ret)

a520b9715e0aab7251a0ad0abc8a28c9724f650a
<mask token>

<mask token>


class TestMyCode(unittest.TestCase):
    <mask token>

<mask token>


class TestMyCode(unittest.TestCase):

    @mock.patch('nose_tests.fsample.app.OTHER_VAR')
    @mock.patch('nose_tests.fsample.remove3.DO_IMPORT')
    def test_my_func(self, mock_import, mock_other):
        mock_import.return_value = True
        mock_other.return_value = 'others'
        from nose_tests.fsample import my_code
        ret = my_code.my_func()
        self.assertTrue(ret)

import unittest
import mock


class TestMyCode(unittest.TestCase):

    @mock.patch('nose_tests.fsample.app.OTHER_VAR')
    @mock.patch('nose_tests.fsample.remove3.DO_IMPORT')
    def test_my_func(self, mock_import, mock_other):
        mock_import.return_value = True
        mock_other.return_value = 'others'
        from nose_tests.fsample import my_code
        ret = my_code.my_func()
        self.assertTrue(ret)
