def test_deprecated_illegal_args(self):
    instructions = 'This is how you update...'
    date = '2016-07-04'
    with self.assertRaisesRegexp(ValueError, 'date'):
        deprecation.deprecated_args(None, instructions, 'deprecated')
    with self.assertRaisesRegexp(ValueError, 'date'):
        deprecation.deprecated_args('', instructions, 'deprecated')
    with self.assertRaisesRegexp(ValueError, 'YYYY-MM-DD'):
        deprecation.deprecated_args('07-04-2016', instructions, 'deprecated')
    with self.assertRaisesRegexp(ValueError, 'instructions'):
        deprecation.deprecated_args(date, None, 'deprecated')
    with self.assertRaisesRegexp(ValueError, 'instructions'):
        deprecation.deprecated_args(date, '', 'deprecated')
    with self.assertRaisesRegexp(ValueError, 'argument'):
        deprecation.deprecated_args(date, instructions)
def test_deprecated_illegal_args(self):
    instructions = 'This is how you update...'
    date = '2016-07-04'
    with self.assertRaisesRegexp(ValueError, 'date'):
        deprecation.deprecated_args(None, instructions, 'deprecated')
    with self.assertRaisesRegexp(ValueError, 'date'):
        deprecation.deprecated_args(, instructions, 'deprecated')
    with self.assertRaisesRegexp(ValueError, 'YYYY-MM-DD'):
        deprecation.deprecated_args('07-04-2016', instructions, 'deprecated')
    with self.assertRaisesRegexp(ValueError, 'instructions'):
        deprecation.deprecated_args(date, None, 'deprecated')
    with self.assertRaisesRegexp(ValueError, 'instructions'):
        deprecation.deprecated_args(date, , 'deprecated')
    with self.assertRaisesRegexp(ValueError, 'argument'):
        deprecation.deprecated_args(date, instructions)