def testRegisterAndRetrieveProxy(self):
        model = puremvc.core.Model.getInstance()
        model.registerProxy(puremvc.patterns.proxy.Proxy('colors', ['red', 'green', 'blue']))
        testProxy = model.retrieveProxy('colors')
        data = testProxy.getData()

        self.assertNotEqual(None, data)
        self.assertEqual(True, isinstance(data, list))
        self.assertEqual(True, len(data) == 3 )
        self.assertEqual(True, data[0]  == 'red' )
        self.assertEqual(True, data[1]  == 'green' )
        self.assertEqual(True, data[2]  == 'blue' )
ModelTest: Test registerProxy() and retrieveProxy()
dataset/ETHPy150Open PureMVC/puremvc-python-standard-framework/tests/core/model.py/ModelTest.testRegisterAndRetrieveProxy