summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAndoni Morales Alastruey <ylatuya@gmail.com>2012-04-26 15:58:05 +0200
committerAndoni Morales Alastruey <ylatuya@gmail.com>2012-04-26 15:58:05 +0200
commit5188dcbf12dacb37f36904bfe1015bd40f5e1361 (patch)
treef1472ca58daf68a1ee959dfb3ca3a126b7b01cd3 /test
parent48f65bda6c18810f5799fd94e0e51b7f00c3bb59 (diff)
test: fix wix test
Diffstat (limited to 'test')
-rw-r--r--test/test_cerbero_packages_wix.py14
1 files changed, 12 insertions, 2 deletions
diff --git a/test/test_cerbero_packages_wix.py b/test/test_cerbero_packages_wix.py
index b9e27a7d..e68baec1 100644
--- a/test/test_cerbero_packages_wix.py
+++ b/test/test_cerbero_packages_wix.py
@@ -54,8 +54,8 @@ MERGE_MODULE = '''\
<Module Id="_gstreamer_test" Language="1033" Version="1.0">
<Package Comments="test" Description="GStreamer Test" Id="1" Manufacturer="GStreamer Project"/>
<Directory Id="TARGETDIR" Name="SourceDir">
- <Component Guid="1" Id="_README">
- <File Id="_README_1" Name="README" Source="z:\\\\\\test\\\\README"/>
+ <Component Guid="1" Id="_readme">
+ <File Id="_readme_1" Name="README" Source="z:\\\\\\test\\\\README"/>
</Component>
<Directory Id="_bin" Name="bin">
<Component Guid="1" Id="_test.exe">
@@ -172,8 +172,18 @@ class MergeModuleTest(unittest.TestCase):
self.mergemodule.fill()
tmp = StringIO.StringIO()
self.mergemodule.write(tmp)
+ #self._compstr(tmp.getvalue(), MERGE_MODULE)
self.assertEquals(MERGE_MODULE, tmp.getvalue())
+ def _compstr(self, str1, str2):
+ str1 = str1.split('\n')
+ str2 = str2.split('\n')
+ for i in range(len(str1)):
+ if str1[i] != str2[i]:
+ print str1[i]
+ print str2[i]
+ print ""
+
class InstallerTest(unittest.TestCase):