def testCreateClashAndBounce(self): s = StateDouble() c = CreateHandler(s) s.rv = False c.handle((1,1), ['#foo', '1234567']) self.assertTrue(s.joincalled) self.assertTrue(s.deopcalled)
def testCreateMultiArgs(self): s = StateDouble() c = CreateHandler(s) c.handle((1,1), ['#foo,#bar', '1234567']) self.assertEquals(['#foo', '#bar'], s.created)
def testCreateCalled(self): s = StateDouble() c = CreateHandler(s) c.handle((1,1), ['#foo', '1234567']) self.assertEquals(['#foo'], s.created)