示例#1
0
 def testUsingTestData(self):
   """Test for spki_sexp_from_string() using test data"""
   new_spki_sexp = ds.spki_sexp_from_string(ds_data.TEST_SPKI_SEXP)
   assert new_spki_sexp.text.strip() == "spki sexp"
示例#2
0
 def testAccessors(self):
   """Test for SPKIData accessors"""
   self.spki_data.spki_sexp.append(
     ds.spki_sexp_from_string(ds_data.TEST_SPKI_SEXP))
   new_spki_data = ds.spki_data_from_string(self.spki_data.to_string())
   assert new_spki_data.spki_sexp[0].text.strip() == "spki sexp"
示例#3
0
 def testAccessors(self):
   """Test for SPKISexp accessors"""
   self.spki_sexp.text = "spki sexp"
   new_spki_sexp = ds.spki_sexp_from_string(self.spki_sexp.to_string())
   assert new_spki_sexp.text.strip() == "spki sexp"