'When a user joins a group without a topic, no topic information is
sent to that user.'

def test_joinTopicless(self):

    firstuser = self.successResultOf(self.realm.lookupUser(u'firstuser'))
    self.successResultOf(self.realm.createGroup(u'somechannel'))
    user = TestCaseUserAgg(firstuser, self.realm, self.factory)
    self._login(user, 'firstuser')
    user.transport.clear()
    user.write('JOIN    #somechannel\r\n')
    response = self._response(user)
    responseCodes = [r[1] for r in response]
    self.assertNotIn('332', responseCodes)
    self.assertNotIn('333', responseCodes)
