Example #1
0
class SupaDupaConfTest(unittest.TestCase):
    def setUp(self):
        self.conf = SupaDupaConf('objc', {'foo': 'bar'}, {'dicty': 'NSDictionary'}, 
                                 False, None)

    def testKeyMapping(self):
        self.assertEquals(self.conf.mapKey('bar'), 'bar')
        self.assertEquals(self.conf.mapKey('foo'), 'bar')

    def testClassOverride(self):
        self.assertEquals(self.conf.classOverrideForProp('NSDictionary'),
                          None)
        self.assertEquals(self.conf.classOverrideForProp('dicty'),
                          'NSDictionary')
Example #2
0
 def setUp(self):
     self.conf = SupaDupaConf('objc', {'foo': 'bar'}, {'dicty': 'NSDictionary'}, 
                              False, None)