OLD | NEW |
1 # This file is part of the Adblock Plus web scripts, | 1 # This file is part of the Adblock Plus web scripts, |
2 # Copyright (C) 2006-present eyeo GmbH | 2 # Copyright (C) 2006-present eyeo GmbH |
3 # | 3 # |
4 # Adblock Plus is free software: you can redistribute it and/or modify | 4 # Adblock Plus is free software: you can redistribute it and/or modify |
5 # it under the terms of the GNU General Public License version 3 as | 5 # it under the terms of the GNU General Public License version 3 as |
6 # published by the Free Software Foundation. | 6 # published by the Free Software Foundation. |
7 # | 7 # |
8 # Adblock Plus is distributed in the hope that it will be useful, | 8 # Adblock Plus is distributed in the hope that it will be useful, |
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of | 9 # but WITHOUT ANY WARRANTY; without even the implied warranty of |
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
100 four = two.mkdir('four') | 100 four = two.mkdir('four') |
101 | 101 |
102 one_ap = '\n {}\n {}'.format(two.strpath, '../three') | 102 one_ap = '\n {}\n {}'.format(two.strpath, '../three') |
103 one.join('settings.ini').write(PATHS_FRAGMENT_TEMPLATE.format(one_ap)) | 103 one.join('settings.ini').write(PATHS_FRAGMENT_TEMPLATE.format(one_ap)) |
104 one.join('one').write('') | 104 one.join('one').write('') |
105 | 105 |
106 two.join('settings.ini').write(PATHS_FRAGMENT_TEMPLATE.format('four')) | 106 two.join('settings.ini').write(PATHS_FRAGMENT_TEMPLATE.format('four')) |
107 two.join('two').write('') | 107 two.join('two').write('') |
108 | 108 |
109 three.join('three').write('') | 109 three.join('three').write('') |
110 three.join('settings.ini').write('') | |
111 | 110 |
112 four.join('four').write('') | 111 four.join('four').write('') |
113 four.join('settings.ini').write('[paths]') | 112 four.join('settings.ini').write('[paths]') |
114 | 113 |
115 source = create_source(one.strpath) | 114 source = create_source(one.strpath) |
116 | 115 |
117 for name in ['one', 'two', 'three', 'four']: | 116 for name in ['one', 'two', 'three', 'four']: |
118 assert source.has_file(name) | 117 assert source.has_file(name) |
OLD | NEW |