Example #1
0
    def test_spaces_are_reconfigured(self):
        """Test that an ABN with formatting we don't expect is transformed."""

        field = forms.AUBusinessNumberField()

        self.assertEqual('53 004 085 616', field.prepare_value('53004085616'))
        self.assertEqual('53 004 085 616', field.prepare_value('53 0 04 08561 6'))
Example #2
0
    def test_abn_with_spaces_remains_unchanged(self):
        """Test that an ABN with the formatting we expect is unchanged."""

        field = forms.AUBusinessNumberField()

        self.assertEqual('53 004 085 616',
                         field.prepare_value('53 004 085 616'))