aboutsummaryrefslogtreecommitdiff
path: root/license_protected_downloads
diff options
context:
space:
mode:
authorDanilo Segan <danilo@canonical.com>2012-07-11 13:05:01 +0200
committerDanilo Segan <danilo@canonical.com>2012-07-11 13:05:01 +0200
commitd9f4eff4a60e24a2071bf72f4f9b523a438578d5 (patch)
treeab347fe95ddaa4588a0d54c30738ca0b36d20ad8 /license_protected_downloads
parent7c8114019d11c897d39416b232f2dbb040b5b4d0 (diff)
Fix unreliable test that assumes current file will always be named .py.
Diffstat (limited to 'license_protected_downloads')
-rw-r--r--license_protected_downloads/tests/test_buildinfo.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/license_protected_downloads/tests/test_buildinfo.py b/license_protected_downloads/tests/test_buildinfo.py
index 99005b4..f315529 100644
--- a/license_protected_downloads/tests/test_buildinfo.py
+++ b/license_protected_downloads/tests/test_buildinfo.py
@@ -231,11 +231,14 @@ class BuildInfoTests(unittest.TestCase):
build_info.full_file_name = file_path
build_info.build_info_array = [{}]
build_info.file_info_array = [{}]
- data = ["Format-Version: 2.0", "Files-Pattern: *.py", "License-Type: protected"]
+ data = ["Format-Version: 2.0",
+ "Files-Pattern: *.py*",
+ "License-Type: protected"]
build_info.parseData(data)
build_info.file_info_array = build_info.getInfoForFile()
- self.assertEquals(build_info.file_info_array, [{'license-type': 'protected'}])
+ self.assertEquals(build_info.file_info_array,
+ [{'license-type': 'protected'}])
def test_remove_false_positives_no_blocks_in_array(self):
file_path = os.path.abspath(__file__)