def test_hello_msg_contains_ninety_day_expired_licenses_help(self): expected = ' * \'show me licenses that expire in 90 days\' or \'expire 90 days\' or \'expire 90\'\n' result = sld.prepare_hello_message() self.assertTrue(expected in result, 'test_hello_msg_contains_ninety_day_expired_licenses_help should be equal:\nExpected: ' '{}\nResult:{}'.format(expected, result))
def test_hello_msg_contains_expired_license_header_help(self): expected = ' * **Expired Licenses Info**\n' result = sld.prepare_hello_message() self.assertTrue(expected in result, 'test_hello_msg_contains_expired_licenses_help should be equal:\nExpected: ' '{}\nResult:{}'.format(expected, result))
def test_hello_msg_contains_usage_help(self): expected = ' * \'show me license usage\' or \'license usage\' or \'usage\'\n' result = sld.prepare_hello_message() self.assertTrue(expected in result, 'test_hello_msg_contains_expired_licenses_help should be equal:\nExpected: ' '{}\nResult:{}'.format(expected, result))
def test_hello_msg_contains_export_licenses_help(self): expected = ' * \'give me an export of licenses\' or \'export licenses\'\n' result = sld.prepare_hello_message() self.assertTrue(expected in result, 'test_hello_msg_contains_export_licenses_help should be equal:\nExpected: ' '{}\nResult:{}'.format(expected, result))
def test_hello_msg_contains_virtual_account_help(self): expected = ' * \'give me a list of account names\'\n' result = sld.prepare_hello_message() self.assertTrue(expected in result, 'test_hello_msg_contains_virtual_account_help should be equal:\nExpected: ' '{}\nResult:{}'.format(expected, result))
def test_hello_msg_contains_intro(self): expected = '**Howdy, this is the Cisco Smart Licensing Dashboard Bot. What can I do for you?**\n\n' result = sld.prepare_hello_message() self.assertTrue(expected in result, 'test_hello_msg_contains_intro should be equal:\nExpected: ' '{}\nResult:{}'.format(expected, result))
def test_hello_msg_contains_technology_help(self): expected = ' * \'show me the architecture mix\' or \'architecture mix\'' result = sld.prepare_hello_message() self.assertTrue(expected in result, 'test_hello_msg_contains_expired_licenses_help should be equal:\nExpected: ' '{}\nResult:{}'.format(expected, result))
def test_hello_msg_contains_status_help(self): expected = '* \'show me the latest status\' or \'status\' or \'give me a status update\'\n' result = sld.prepare_hello_message() self.assertTrue(expected in result, 'test_hello_msg_contains_status_help should be equal:\nExpected: ' '{}\nResult:{}'.format(expected, result))