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