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