예제 #1
0
 def test_get_cas_service_no_config(self):
   conf = config.GlobalConfig()
   self.mock(config, 'cached', lambda: conf)
   self.assertIsNone(impl.get_cas_service())
예제 #2
0
 def test_get_cas_service_bad_config(self):
   conf = config.GlobalConfig(
       cas_gs_path='blah',
       cas_gs_temp='/cas_gs_temp/def')
   self.mock(config, 'cached', lambda: conf)
   self.assertIsNone(impl.get_cas_service())
예제 #3
0
 def test_get_cas_service_ok(self):
   conf = config.GlobalConfig(
       cas_gs_path='/cas_gs_path/abc/',
       cas_gs_temp='/cas_gs_temp/def/')
   self.mock(config, 'cached', lambda: conf)
   self.assertIsNotNone(impl.get_cas_service())