From 24f86b7b883d4d7bd5ac2d6fe333b9105d8eb862 Mon Sep 17 00:00:00 2001
From: Sebastian Lobinger <sebastian.lobinger@fu-berlin.de>
Date: Thu, 1 Jun 2017 08:46:33 +0200
Subject: [PATCH] update test_main_app in test_sams_hub.py to fix issue #12

the test now uses copy of main_app string in hub.config. This is
important to ensure the hub_class addApp method compares the string
value (not it's identity) of app.name to determine it is the main app.
---
 test/test_sams_hub.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/test/test_sams_hub.py b/test/test_sams_hub.py
index 6e2e94a..08ef387 100644
--- a/test/test_sams_hub.py
+++ b/test/test_sams_hub.py
@@ -53,7 +53,7 @@ class CaseSAMSHubWithMainApp(unittest.TestCase):
       with self.subTest(main_app = main_app, extra_app = extra_app):
         hub = SAMSHub(
           name = 'test',
-          config = {'default_language': 'de', 'main_app' : main_app}
+          config = {'default_language': 'de', 'main_app' : ''.join(main_app)}
         )
         expected_names = [
           'Hauptanwendung Punkt 1', 'Hauptanwendung Punkt 2',
-- 
GitLab