コード例 #1
0
 def test_body_b64encoded(self):
     """ Check that this function is b64 encoding the content of body. """
     q = b''
     params = utils.build_query_params(q)
     self.assertEqual(
         utils.doh_b64_encode(q),
         params[constants.DOH_BODY_PARAM]
     )
コード例 #2
0
ファイル: test_utils.py プロジェクト: shahbazn/doh-proxy
 def test_b64_encode(self, input, output):
     self.assertEqual(utils.doh_b64_encode(input), output)