def parse_page(lines, results): """ Calls the PageRateParser if the page has lines on it. """ if not lines: return PageRateParser.parse_page(lines, results)
def test_should_identify_letter_weights(self): self.assertTrue(PageRateParser.is_letter_weight("Letter*"))
def test_should_identify_weight_columns_starting_with_Zones(self): self.assertTrue(PageRateParser.is_weight_column("Zones"))
def test_should_reject_columns_with_extra_text_in_addition_to_Zones(self): self.assertFalse(PageRateParser.is_weight_column("Zones 123"))
def parse_page(lines, results): if not lines: return PageRateParser.parse_page(lines, results)