def test_check_https(self):
     params = self.params_https
     check = ServiceCheck.https(self.dummyservice, params)
     self.assertEqual(check['http'], 'https://6.6.6.6:666/path')
     self.assertEqual(check['interval'], '17s')
     self.assertEqual(check['timeout'], '3s')
     self.assertEqual(check['header'], {'x-foo': ['bar', 'baz']})
     self.assertEqual(check['Method'], 'HEAD')
     self.assertEqual(check['Body'], params['body'])
     self.assertEqual(len(check), 6)
 def test_check_https_skip_verify_false(self):
     params = self.params_https
     params['tls_skip_verify'] = 'false'
     check = ServiceCheck.https(self.dummyservice, params)
     self.assertNotIn('TLSSkipVerify', check)
 def test_check_https_skip_verify_true(self):
     params = self.params_https
     params['tls_skip_verify'] = 'TrUe'
     check = ServiceCheck.https(self.dummyservice, params)
     self.assertIn('TLSSkipVerify', check)
     self.assertTrue(check['TLSSkipVerify'])