Exemplo n.º 1
0
 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)
Exemplo n.º 2
0
 def testCreateMultiArgs(self):
     s = StateDouble()
     c = CreateHandler(s)
     c.handle((1,1), ['#foo,#bar', '1234567'])
     self.assertEquals(['#foo', '#bar'], s.created)
Exemplo n.º 3
0
 def testCreateCalled(self):
     s = StateDouble()
     c = CreateHandler(s)
     c.handle((1,1), ['#foo', '1234567'])
     self.assertEquals(['#foo'], s.created)