Beispiel #1
0
 def test_enter(self, _open):
     connection = BaseConnection(TEST_URL)
     retval = connection.__enter__()
     _open.assert_called_once_with()
     self.assertEqual(connection, retval)
Beispiel #2
0
 def test_enter(self, _open):
     connection = BaseConnection(TEST_URL)
     retval = connection.__enter__()
     _open.assert_called_once_with()
     self.assertEqual(connection, retval)