def test_name_default_profile_returns_None_if_multiple_profiles(self): profiles = make_configs(2) self.assertIsNone(name_default_profile(profiles))
def test_name_default_profile_returns_None_if_no_profile_found(self): self.assertIsNone(name_default_profile(make_configs(0)))
def test_name_default_profile_picks_single_profile(self): profiles = make_configs(1) [name] = profiles.keys() self.assertEqual(name, name_default_profile(profiles))
def test_name_default_profile_returns_None_if_multiple_profiles(self): profiles = make_configs(2) self.assertIsNone(name_default_profile(profiles))
def test_name_default_profile_returns_None_if_no_profile_found(self): self.assertIsNone(name_default_profile(make_configs(0)))
def test_name_default_profile_picks_single_profile(self): profiles = make_configs(1) [name] = profiles.keys() self.assertEqual(name, name_default_profile(profiles))