コード例 #1
0
    def test_set_document_numbers(self):
        notice = {"document_number": "111", "effective_on": "2013-10-08"}
        notices = build.set_document_numbers([notice])
        self.assertEqual(notices[0]["document_number"], "111")

        second_notice = {"document_number": "222", "effective_on": "2013-10-10"}

        notices = build.set_document_numbers([notice, second_notice])

        self.assertEqual(notices[0]["document_number"], "111_20131008")
        self.assertEqual(notices[1]["document_number"], "222_20131010")
コード例 #2
0
    def test_set_document_numbers(self):
        notice = {'document_number': '111', 'effective_on': '2013-10-08'}
        notices = build.set_document_numbers([notice])
        self.assertEqual(notices[0]['document_number'], '111')

        second_notice = {'document_number': '222',
                         'effective_on': '2013-10-10'}

        notices = build.set_document_numbers([notice, second_notice])

        self.assertEqual(notices[0]['document_number'], '111_20131008')
        self.assertEqual(notices[1]['document_number'], '222_20131010')
コード例 #3
0
    def test_set_document_numbers(self):
        notice = {'document_number': '111', 'effective_on': '2013-10-08'}
        notices = build.set_document_numbers([notice])
        self.assertEqual(notices[0]['document_number'], '111')

        second_notice = {'document_number': '222',
                         'effective_on': '2013-10-10'}

        notices = build.set_document_numbers([notice, second_notice])

        self.assertEqual(notices[0]['document_number'], '111_20131008')
        self.assertEqual(notices[1]['document_number'], '222_20131010')