def test_mindmeld_base64(self): meld = s_mindmeld.MindMeld() meld.addPySource('hehehahaaaa','x = 40') s_mindmeld.loadMeldBase64( meld.getMeldBase64() ) import hehehahaaaa self.assertEqual( hehehahaaaa.x, 40 )
def test_mindmeld_base64(self): meld = s_mindmeld.MindMeld() meld.addPySource('hehehahaaaa', 'x = 40') s_mindmeld.loadMeldBase64(meld.getMeldBase64()) import hehehahaaaa self.assertEqual(hehehahaaaa.x, 40)
def _loadMeldBase64(self, b64): meld = s_mindmeld.loadMeldBase64(b64) info = meld.getMeldDict() name = info.get('name') vers = info.get('version') self.melds.append({'name': name, 'version': vers}) return meld
def _loadMeldBase64(self, b64): meld = s_mindmeld.loadMeldBase64(b64) info = meld.getMeldDict() name = info.get('name') vers = info.get('version') self.melds.append( {'name':name,'version':vers} ) return meld