'Test handling a timed out roster request.'

def testRosterTimeout(self):

    self.stream_start()
    def do_test():
        self.xmpp.get_roster(timeout=0)
        time.sleep(0.1)
    self.assertRaises(IqTimeout, do_test)
