示例#1
0
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'
示例#3
0
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'
示例#5
0
    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')
示例#6
0
    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')