Exemplo n.º 1
0
 def test_select_profile_selects_default_if_no_profile_named(self):
     profiles = make_configs(1)
     [name] = profiles.keys()
     self.assertEqual(name, select_profile(profiles))
Exemplo n.º 2
0
 def test_select_profile_returns_named_profile(self):
     profiles = make_configs(3)
     profile_name = profiles.keys()[1]
     self.assertEqual(profile_name, select_profile(profiles, profile_name))
Exemplo n.º 3
0
 def test_select_profile_selects_default_if_no_profile_named(self):
     profiles = make_configs(1)
     [name] = profiles.keys()
     self.assertEqual(name, select_profile(profiles))
Exemplo n.º 4
0
 def test_select_profile_returns_named_profile(self):
     profiles = make_configs(3)
     [profile_name, _, _] = profiles
     self.assertEqual(profile_name, select_profile(profiles, profile_name))
Exemplo n.º 5
0
 def test_select_profile_returns_named_profile(self):
     profiles = make_configs(3)
     profile_name = profiles.keys()[1]
     self.assertEqual(profile_name, select_profile(profiles, profile_name))