示例#1
0
 def test_from_raw(self):
     v = Vapid01.from_raw(T_RAW)
     self.check_keys(v)
示例#2
0
 def test_from_raw(self):
     v = Vapid01.from_raw(TEST_KEY_PRIVATE_RAW)
     self.check_keys(v)
示例#3
0
 def test_from_raw(self):
     v = Vapid01.from_raw(T_RAW)
     self.check_keys(v)
示例#4
0
 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'))