def test_address_for_returns_none_by_default(self): parser = AddressParser(labels={}) self.assertEqual(None, parser.address_for('chrout'))
def test_adderss_for_returns_alternate_default(self): parser = AddressParser(labels={}) self.assertEqual('foo', parser.address_for('chrout', 'foo'))
def test_address_for_returns_address(self): parser = AddressParser(labels={'chrout': 0xFFD2}) self.assertEqual(0xFFD2, parser.address_for('chrout'))