Ejemplo n.º 1
0
 def test_round_trip(self):
     a = Artifact(self.test_text_data, Artifact.TYPE_GENERIC)
     a2 = round_trip(a, Artifact)
     self.assertEqual(a.to_dict(), a2.to_dict())
Ejemplo n.º 2
0
 def test_round_trip(self):
     # Without any packaging, the only data an Artifact can encode
     # successfully is ASCII data.
     a = Artifact(self.ascii_data, Artifact.TYPE_GENERIC)
     a2 = round_trip(a, Artifact)
     self.assertEqual(a.to_dict(), a2.to_dict())
Ejemplo n.º 3
0
 def test_round_trip(self):
     # Without any packaging, the only data an Artifact can encode
     # successfully is ASCII data.
     a = Artifact(self.ascii_data, Artifact.TYPE_GENERIC)
     a2 = round_trip(a, Artifact)
     self.assertEqual(a.to_dict(), a2.to_dict())
Ejemplo n.º 4
0
 def test_round_trip(self):
     a = Artifact(self.test_text_data, Artifact.TYPE_GENERIC)
     a2 = round_trip(a, Artifact)
     self.assertEqual(a.to_dict(), a2.to_dict())