diff options
author | James Booth <boothj5@gmail.com> | 2015-08-04 23:22:43 +0100 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2015-08-04 23:22:43 +0100 |
commit | 2cb2f83ce3519a40f752ca2be7a07669a125ed1b (patch) | |
tree | 3bdeeab37f0db0cf84ee8b50f8b81ae4e5a80f11 /tests/functionaltests/test_presence.c | |
parent | 091a23fc48a23e48e5e1aad6bb0d900c2b48cdc5 (diff) | |
download | profani-tty-2cb2f83ce3519a40f752ca2be7a07669a125ed1b.tar.gz |
Added test for missing resource on presence
Diffstat (limited to 'tests/functionaltests/test_presence.c')
-rw-r--r-- | tests/functionaltests/test_presence.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/functionaltests/test_presence.c b/tests/functionaltests/test_presence.c index cb2eacd3..936d9405 100644 --- a/tests/functionaltests/test_presence.c +++ b/tests/functionaltests/test_presence.c @@ -241,3 +241,22 @@ presence_received(void **state) assert_true(prof_output_exact("Buddy1 (mobile) is online, \"I'm here\"")); } + +void +presence_missing_resource_defaults(void **state) +{ + prof_connect(); + + stbbr_send( + "<presence to=\"stabber@localhost\" from=\"buddy1@localhost\">" + "<priority>15</priority>" + "<status>My status</status>" + "</presence>" + ); + + assert_true(prof_output_exact("Buddy1 is online, \"My status\"")); + + prof_input("/info Buddy1"); + + assert_true(prof_output_exact("__prof_default (15), online")); +} |