Exemple #1
0
    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 )
Exemple #2
0
    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)
Exemple #3
0
    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
Exemple #4
0
    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