Exemple #1
0
 def test_open_already(self):
     method = Method('', '', {})
     method.is_open = Mock(return_value=True)
     method.open()
     self.assertFalse(method.connection.open.called)
Exemple #2
0
 def test_open_already(self):
     method = Method("", "", {})
     method.is_open = Mock(return_value=True)
     method.open()
     self.assertFalse(method.connection.open.called)