def testJsonWriter(self): """Tests the JsonArtifactsWriter FormatArtifacts method for loss during conversion.""" artifact_reader = reader.JsonArtifactsReader() artifact_writer = writer.JsonArtifactsWriter() test_file = os.path.join('test_data', 'definitions.json') self.checkArtifactConversion(artifact_reader, artifact_writer, test_file)
def testJsonWriter(self): """Tests conversion with the JsonArtifactsWriter.""" artifact_reader = reader.JsonArtifactsReader() artifact_writer = writer.JsonArtifactsWriter() self._TestArtifactsConversion(artifact_reader, artifact_writer, 'definitions.json')