def test_matches_cli_output(self): text = '''{ "key1" => "value1" "key2" => "value2" } ''' self.assertTrue(jboss7_cli._is_cli_output(text))
def test_not_matches_cli_output(self): text = '''Some error ''' self.assertFalse(jboss7_cli._is_cli_output(text))