def test_max_length(self): self.assertEqual(service_accounts._service_account_id('a' * 26), 'bot-%s' % ('a' * 26)) # pylint: disable=protected-access
def test_more_than_max_length(self): self.assertEqual('bot-52a00b8461593ce33409d7c5d0', service_accounts._service_account_id('a' * 27)) # pylint: disable=protected-access
def test_min_length(self): self.assertEqual(service_accounts._service_account_id('a'), 'bot-a0') # pylint: disable=protected-access
def test_regular_length(self): self.assertEqual(service_accounts._service_account_id('abc'), 'bot-abc') # pylint: disable=protected-access
def test_more_than_max_length(self): with self.assertRaises(AssertionError): service_accounts._service_account_id('a' * 27)
def test_max_length(self): self.assertEqual(service_accounts._service_account_id('a' * 26), 'bot-%s' % ('a' * 26))
def test_regular_length(self): self.assertEqual(service_accounts._service_account_id('abc'), 'bot-abc')
def test_min_length(self): self.assertEqual(service_accounts._service_account_id('a'), 'bot-a0')
def test_more_than_max_length(self): with self.assertRaises(AssertionError): service_accounts._service_account_id('a' * 27) # pylint: disable=protected-access