The last two lines in this function need to be inside an else: I think. Otherwise an exception will be raised when permissions_allow_domain() is called, if the import failed, since you're not returning in the except handler. I guess this wasn't caught in your tests, as you're mocking that function.
134 + def activate_ unity_webapp_ for_domain( self, domain): "activating webapp for domain '%s'", domain) permissions_ allow_domain( domain)
135 + try:
136 + from gi.repository import UnityWebapps
137 + except ImportError:
138 + LOG.warn("failed to import UnityWebapps GIR")
139 + LOG.debug(
140 + UnityWebapps.
The last two lines in this function need to be inside an else: I think. Otherwise an exception will be raised when permissions_ allow_domain( ) is called, if the import failed, since you're not returning in the except handler. I guess this wasn't caught in your tests, as you're mocking that function.
+ # instal backend
Typo.