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')
def setUp(self): self.conf = SupaDupaConf('objc', {'foo': 'bar'}, {'dicty': 'NSDictionary'}, False, None)