@classmethod
    def fromstring(cls, value):
        return getattr(cls, value.upper(), None)
Test the _write_c_nv_pr() method
dataset/ETHPy150Open apache/libcloud/libcloud/container/types.py/Type.fromstring--crossover with--dataset/ETHPy150Open jmcnamara/XlsxWriter/xlsxwriter/test/drawing/test_write_c_nv_pr.py/TestWriteXdrcNvPr.test_write_c_nv_pr