Example #1
0
 def xtest_scan_for_predefined_labels(self):
     # label keys: line_number, bank, label, offset, address
     load_asm()
     all_labels = scan_for_predefined_labels()
     label_names = [x["label"] for x in all_labels]
     self.assertIn("GetFarByte", label_names)
     self.assertIn("AddNTimes", label_names)
     self.assertIn("CheckShininess", label_names)
Example #2
0
 def test_load_asm(self):
     asm = load_asm()
     joined_lines = "\n".join(asm)
     self.failUnless("SECTION" in joined_lines)
     self.failUnless("bank" in joined_lines)
     self.failUnless(isinstance(asm, AsmList))