def test_from_raw(self): v = Vapid01.from_raw(T_RAW) self.check_keys(v)
def test_from_raw(self): v = Vapid01.from_raw(TEST_KEY_PRIVATE_RAW) self.check_keys(v)
def test_from_raw(self): v = Vapid01.from_raw(T_RAW) eq_(v.private_key.to_pem(), T_PRIVATE.encode('utf8')) eq_(v.public_key.to_pem(), T_PUBLIC.encode('utf8'))