1 # -*- coding: utf-8 -*-
2 """Test getting configuration."""
3 from unittest import TestCase
4 from cbconf import Conf
6 class LoadConfig(TestCase):
7 def test_conf_exists(self):
9 self.assertIsNotNone(c.conf)
11 def test_coffebot_url(self):
13 self.assertIn("https://hooks.slack.com/services/", c.getCoffeebotURL())
15 def test_db_url(self):
17 self.assertIn(".db", c.getCoffeeDbPath())