Index: sitescripts/extensions/test/test_createNightlies.py |
=================================================================== |
--- a/sitescripts/extensions/test/test_createNightlies.py |
+++ b/sitescripts/extensions/test/test_createNightlies.py |
@@ -50,17 +50,18 @@ |
def test_current_revision(nightlybuild): |
# The hash is the commit that the safari bookmark points to. |
# (see adblockplusnightly.bookmark in test/data/bookmarks) |
assert nightlybuild.revision == '1291590ddd0f' |
def test_copy_repository(nightlybuild, nightlydir): |
nightlybuild.copyRepository() |
- assert os.listdir(nightlybuild.tempdir) == ['.hg', 'README.txt'] |
+ files = os.listdir(nightlybuild.tempdir) |
+ assert set(files) == {'.hg', 'README.txt'} |
def test_get_changes(nightlybuild, nightlydir): |
# The bookmark 'safari' contains only 2 revisions |
# default contains 51 so here we ensure that erroneous changes |
# are not returned |
for change in nightlybuild.getChanges(): |
assert change['revision'] < '2' |