예제 #1
0
    def test_process_designate_subpart(self):
        p_list = ['200-?-1-a', '200-?-1-b']
        destination = '205-Subpart:A'
        amended_label = DesignateAmendment('DESIGNATE', p_list, destination)

        subpart_changes = build.process_designate_subpart(amended_label)

        self.assertEqual(['200-1-a', '200-1-b'], subpart_changes.keys())

        for p, change in subpart_changes.items():
            self.assertEqual(change['destination'], ['205', 'Subpart', 'A'])
            self.assertEqual(change['action'], 'DESIGNATE')
    def test_process_designate_subpart(self):
        p_list = ['200-?-1-a', '200-?-1-b']
        destination = '205-Subpart:A'
        amended_label = DesignateAmendment('DESIGNATE', p_list, destination)

        subpart_changes = build.process_designate_subpart(amended_label)

        self.assertEqual(['200-1-a', '200-1-b'], subpart_changes.keys())

        for p, change in subpart_changes.items():
            self.assertEqual(change['destination'], ['205', 'Subpart', 'A'])
            self.assertEqual(change['action'], 'DESIGNATE')
    def test_process_designate_subpart(self):
        p_list = ["200-?-1-a", "200-?-1-b"]
        destination = "205-Subpart:A"
        amended_label = DesignateAmendment("DESIGNATE", p_list, destination)

        subpart_changes = build.process_designate_subpart(amended_label)

        self.assertEqual(["200-1-a", "200-1-b"], subpart_changes.keys())

        for p, change in subpart_changes.items():
            self.assertEqual(change["destination"], ["205", "Subpart", "A"])
            self.assertEqual(change["action"], "DESIGNATE")