<html><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:12pt">Hey all,<div id="yiv3132183168"><div><div style="color: rgb(0, 0, 0); background-color: rgb(255, 255, 255); font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12pt;"><div id="yiv3132183168yui_3_13_0_ym1_1_1395848023057_3047"></div></div></div></div><div><br></div><div>I want to eunit+meck test a simple telnet client which uses the guard is_port(Port).</div><div>how can I pass something in meck:expect/4 that will pass the guard?</div><div><br></div><div>is it a record/reference that I can make up?</div><div>can I use hd(erlang:ports()) -> #Port<0.0> without blowing up?</div><div>Thanks</div></div></body></html>