'Test phone number validation with standard notation requirement'

def testStandardNotationRequirement(self):

    assertEqual = self.assertEqual
    assertNotEqual = self.assertNotEqual
    validate = IS_PHONE_NUMBER(international=False)
    number = '(021)    3847589'
    (value, error) = validate(number)
    assertEqual(error, None)
    assertEqual(value, '(021)    3847589')
    number = '0049-681-5049321'
    (value, error) = validate(number)
    assertEqual(error, None)
    assertEqual(value, '0049-681-5049321')
    number = '    1-992-883742'
    (value, error) = validate(number)
    assertEqual(error, None)
    assertEqual(value, '1-992-883742')
    number = '1.123.736489'
    (value, error) = validate(number)
    assertEqual(error, None)
    assertEqual(value, '1.123.736489')
    number = '+44848958493    '
    (value, error) = validate(number)
    assertEqual(error, None)
    assertEqual(value, '+44848958493')
    number = '(021)    3ADF589'
    (value, error) = validate(number)
    assertNotEqual(error, None)
    number = 'Test'
    (value, error) = validate(number)
    assertNotEqual(error, None)
    number = '+44848958493/+44736282167'
    (value, error) = validate(number)
    assertNotEqual(error, None)
    number = None
    (value, error) = validate(number)
    assertNotEqual(error, None)
    number = ''
    (value, error) = validate(number)
    assertNotEqual(error, None)
