#include #include #include #include #include #include #include #include #include #include "proftest.h" void presence_away(void **state) { prof_connect("stabber@localhost", "password"); prof_input("/away"); assert_true(stbbr_received( "" "away" "" "" )); assert_true(prof_output_exact("Status set to away (priority 0)")); } void presence_away_with_message(void **state) { prof_connect("stabber@localhost", "password"); prof_input("/away \"I'm not here for a bit\""); assert_true(stbbr_received( "" "away" "I'm not here for a bit" "" "" )); assert_true(prof_output_exact("Status set to away (priority 0), \"I'm not here for a bit\".")); }