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] )
def test_b64_encode(self, input, output): self.assertEqual(utils.doh_b64_encode(input), output)