def test_to_data(self, value, data): """Verify values are converted to output data.""" assert data == String.to_data(value)
def test_to_value(self, data, value): """Verify input data is converted to values.""" assert value == String.to_value(data)