예제 #1
0
 def test_base_url_without_path_should_error(self):
     sut = Configuration('/tmp/betty', 'https://example.com')
     with self.assertRaises(ConfigurationError):
         sut.base_url = 'file://'
예제 #2
0
 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)