示例#1
0
    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
    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)