From 9a94e3bd21c527d22282b921706ac518b432e1df Mon Sep 17 00:00:00 2001 From: Andy Doan Date: Thu, 9 Jul 2015 12:48:32 -0500 Subject: buildinfo: remove need for search-path and full name The last commit made full_file_name and search_path unused variables. Removing them simplifies the constructor. Change-Id: I2ac2d92ef1195df5294d07dad84ba98a3f4f4ae5 --- license_protected_downloads/tests/test_buildinfo.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'license_protected_downloads/tests/test_buildinfo.py') diff --git a/license_protected_downloads/tests/test_buildinfo.py b/license_protected_downloads/tests/test_buildinfo.py index 9ab5738..6b04118 100644 --- a/license_protected_downloads/tests/test_buildinfo.py +++ b/license_protected_downloads/tests/test_buildinfo.py @@ -19,7 +19,7 @@ class BuildInfoBaseTests(unittest.TestCase): def setUp(self): p = os.path.join(THIS_DIRECTORY, "BUILD-INFO.txt") with open(os.path.join(THIS_DIRECTORY, "BUILD-INFO.txt")) as f: - self.build_info = BuildInfoBase(p, os.path.dirname(p), f.read()) + self.build_info = BuildInfoBase(p, f.read()) def test_get_emptyField(self): value = "notempty" @@ -187,8 +187,6 @@ class BuildInfoBaseTests(unittest.TestCase): [{'license-type': 'protected'}, {'license-type': 'protected'}]) def test_getInfoForFile(self): - self.build_info.full_file_name = os.path.join( - self.build_info.search_path, 'foo.pyc') self.build_info.fname = 'foo.pyc' self.build_info.build_info_array = [{}] data = ["Format-Version: 2.0", @@ -205,8 +203,6 @@ class BuildInfoBaseTests(unittest.TestCase): self.assertEquals(self.build_info.file_info_array, [{}]) def test_getInfoForFile_no_block_for_file(self): - self.build_info.full_file_name = os.path.join( - self.build_info.search_path, 'foo.pyc') self.build_info.fname = 'foo.pyc' self.build_info.build_info_array = [{}] data = ["Format-Version: 2.0", -- cgit v1.2.3