'Test how negative max_attempts are handled'

def test_schedule_negative_max_attempts(self):

    delay = 2
    max_attempts = (-100)
    try:
        ConstantReconnectionPolicy(delay=delay, max_attempts=max_attempts)
        self.fail('max_attempts    should    throw    ValueError    when    negative')
    except ValueError:
        pass
