コード例 #1
0
 def test_address_for_returns_none_by_default(self):
     parser = AddressParser(labels={})
     self.assertEqual(None, parser.address_for('chrout'))
コード例 #2
0
 def test_adderss_for_returns_alternate_default(self):
     parser = AddressParser(labels={})
     self.assertEqual('foo', parser.address_for('chrout', 'foo'))
コード例 #3
0
 def test_address_for_returns_address(self):
     parser = AddressParser(labels={'chrout': 0xFFD2})
     self.assertEqual(0xFFD2, parser.address_for('chrout'))