예제 #1
0
파일: test_utils.py 프로젝트: vdloo/messor
    def test_stitch_returns_list_of_joined(self):
        ret = stitch_directory_and_files(('1', '2', ['3', '4']))

        self.assertEqual(ret, [self.os.path.join.return_value, self.os.path.join.return_value])
예제 #2
0
파일: test_utils.py 프로젝트: vdloo/messor
    def test_stitch_joins_first_and_third_el(self):
        stitch_directory_and_files(('1', '2', ['3', '4']))

        self.assertEqual([call('1', '3'), call('1', '4')], self.os.path.join.mock_calls)