Ejemplo n.º 1
0
    def test_spaces_are_reconfigured(self):
        """Test that a TFN with formatting we don't expect is transformed."""

        field = forms.AUTaxFileNumberField()

        self.assertEqual('123 456 782', field.prepare_value('123456782'))
        self.assertEqual('123 456 782', field.prepare_value('12 345 678 2'))
Ejemplo n.º 2
0
    def test_tfn_with_spaces_remains_unchanged(self):
        """Test that a TFN with the formatting we expect is unchanged."""

        field = forms.AUTaxFileNumberField()

        self.assertEqual('123 456 782', field.prepare_value('123 456 782'))