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