'Ensure that a CHAP username and password are generated.'

def test_configure_chap_generate_username_and_password(self):

    initiator_name = fake.ISCSI_CONNECTOR['initiator']
    (username, password) = self.library._configure_chap(initiator_name)
    self.assertEqual(na_utils.DEFAULT_CHAP_USER_NAME, username)
    self.assertIsNotNone(password)
    self.assertEqual(len(password), na_utils.CHAP_SECRET_LENGTH)
