def test_base_url_without_path_should_error(self): sut = Configuration('/tmp/betty', 'https://example.com') with self.assertRaises(ConfigurationError): sut.base_url = 'file://'
def test_base_url(self): sut = Configuration('/tmp/betty', 'https://example.com') base_url = 'https://example.com' sut.base_url = base_url self.assertEquals(base_url, sut.base_url)