def test_get_value_failure(self):
     with self.assertRaises(Exception) as cm:
         get_value("ZABBIX_URL_URL_URL_URL_")
     exc = cm.exception
     expected = (u"You must define the ZABBIX_URL_URL_URL_URL_ environment"
                 u" variable.")
     self.assertEqual((expected, ), exc.args)
Exemplo n.º 2
0
 def test_get_value_failure(self):
     with self.assertRaises(Exception) as cm:
         get_value("ZABBIX_URL_URL_URL_URL_")
     exc = cm.exception
     expected = (u"You must define the ZABBIX_URL_URL_URL_URL_ environment"
                 u" variable.")
     self.assertEqual((expected,), exc.args)
 def test_get_value(self):
     url = get_value("ZABBIX_URL")
     self.assertEqual(self.url, url)
Exemplo n.º 4
0
 def test_get_value(self):
     url = get_value("ZABBIX_URL")
     self.assertEqual(self.url, url)