def test_wrong(self): errors = check_po_file(PO_WRONG) eq_(len(errors), 1) eq_(errors[0][0], '{number} dataset found for {query}')
def test_wrong_plurals(self): errors = check_po_file(PO_WRONG_PLURALS) eq_(len(errors), 2) for error in errors: assert error[0] in ('{hours} hour ago', '{hours} hours ago')
def test_plurals_ok(self): errors = check_po_file(PO_PLURALS_OK) eq_(errors, [])
def test_basic(self): errors = check_po_file(PO_OK) eq_(errors, [])
def test_wrong_plurals(): errors = check_po_file(PO_WRONG_PLURALS) assert len(errors) == 2 for error in errors: assert error[0] in ("{hours} hour ago", "{hours} hours ago")
def test_plurals_ok(): errors = check_po_file(PO_PLURALS_OK) assert errors == []
def test_wrong(): errors = check_po_file(PO_WRONG) assert len(errors) == 1 assert errors[0][0] == "{number} dataset found for {query}"
def test_basic(): errors = check_po_file(PO_OK) assert errors == []