Beispiel #1
0
 def test_prefixes(self):
     add_basic_profile(self.config)
     prefixes = self.config.prefixes()
     prfx = prefixes[0]
     self.assertEqual(prfx, 'ba')
Beispiel #2
0
 def test_profile(self):
     add_basic_profile(self.config)
     profile = self.config.profile('Basic')
     self.assertEqual(profile.name, 'Basic')
Beispiel #3
0
 def test_remove_profile(self):
     add_basic_profile(self.config)
     status = self.config.remove_profile('Basic')
     self.assertTrue(status)
Beispiel #4
0
 def test_add_profile(self):
     add_basic_profile(self.config)
     self.assertEqual(len(self.config.profiles), 1)
Beispiel #5
0
 def setUp(self):
     self.config = StdmConfiguration.instance()
     self.profile = add_basic_profile(self.config)
Beispiel #6
0
 def setUp(self):
     self.config = StdmConfiguration.instance()
     self.profile = add_basic_profile(self.config)