def test_get_destination_no_reg_part(): subpart_token = tokens.Paragraph.make(subpart='J') tokenized = [subpart_token] assert amdparser.get_destination(tokenized, '205') == '205-Subpart:J'
def test_get_destination_no_reg_part(): subpart_token = tokens.Paragraph.make(subpart='J') tokenized = [subpart_token] assert amdparser.get_destination(tokenized, '205') == '205-Subpart:J'
def test_get_destination_normal(): subpart_token = tokens.Paragraph.make(part='205', subpart='A') tokenized = [subpart_token] assert amdparser.get_destination(tokenized, '205') == '205-Subpart:A'
def test_get_destination_normal(): subpart_token = tokens.Paragraph.make(part='205', subpart='A') tokenized = [subpart_token] assert amdparser.get_destination(tokenized, '205') == '205-Subpart:A'
def test_get_destination_no_reg_part(self): subpart_token = tokens.Paragraph(subpart='J') tokenized = [subpart_token] self.assertEqual(amdparser.get_destination(tokenized, '205'), '205-Subpart:J')
def test_get_destination_normal(self): subpart_token = tokens.Paragraph(part='205', subpart='A') tokenized = [subpart_token] self.assertEqual(amdparser.get_destination(tokenized, '205'), '205-Subpart:A')
def test_get_destination_no_reg_part(self): subpart_token = tokens.Paragraph(subpart='J') tokenized = [subpart_token] self.assertEqual(amdparser.get_destination(tokenized, '205'), '205-Subpart:J')
def test_get_destination_normal(self): subpart_token = tokens.Paragraph(part='205', subpart='A') tokenized = [subpart_token] self.assertEqual(amdparser.get_destination(tokenized, '205'), '205-Subpart:A')