<s> from mock import patch <EOL> import unittest <EOL> import slack <EOL> import slack . users <EOL> import slack . http_client <EOL> slack . api_token = '<STR_LIT>' <EOL> class TestGetPresence ( unittest . TestCase ) : <EOL> @ patch . object ( slack . http_client , '<STR_LIT>' ) <EOL> def test_get_presence ( self , http_get_mock ) : <EOL> slack . users . getPresence ( '<STR_LIT>' ) <EOL> http_get_mock . assert_called_with ( '<STR_LIT>' , { <EOL> '<STR_LIT>' : '<STR_LIT>' , <EOL> '<STR_LIT:user>' : '<STR_LIT>' , <EOL> } ) </s>
