def test_valid_config(self):
        manager = ConfigManager(self.api, Printer())

        profiles = self.api.profile_list()
        self.assertEquals(len(profiles), 0)

        manager.install("https://github.com/bincrafters/bincrafters-config.git", "-b main")

        profiles = self.api.profile_list()
        self.assertGreater(len(profiles), 3)
    def test_invalid_config(self):
        manager = ConfigManager(self.api, Printer())

        profiles = self.api.profile_list()
        self.assertEquals(len(profiles), 0)

        try:
            manager.install("https://github.com/")
            self.fail("Could not accept wrong URL")
        except ConanException:
            pass
 def test_valid_config_with_args(self):
     manager = ConfigManager(self.conan_api, Printer())
     manager.install('https://github.com/bincrafters/conan-config.git',
                     '-b master')
 def test_valid_config(self):
     manager = ConfigManager(self.conan_api, Printer())
     manager.install('https://github.com/bincrafters/bincrafters-config.git')