Ejemplo n.º 1
0
 def test_input2(self):
     other_input = fake_env.FakeInput(['yes', 'no'], module_list=[color])
     other_input.as_global()
     self.assertEqual(color.input(), 'yes')
     self.assertEqual(color.input(), 'no')
     with self.assertRaises(fake_env.FakeInput.UnexpectedInput):
         color.input()
Ejemplo n.º 2
0
 def test_input2(self):
     other_input = fake_env.FakeInput(['yes', 'no'], module_list=[color])
     other_input.as_global()
     self.assertEqual(color.input(), 'yes')
     self.assertEqual(color.input(), 'no')
     with self.assertRaises(fake_env.FakeInput.UnexpectedInput):
         color.input()