コード例 #1
0
 def test_it_should_use_isql_executable_to_connect_to_virtuoso(self, command_call_mock):
     virtuoso = Virtuoso(self.config)
     conn = virtuoso.connect()
     self.assertEqual('isql -U user -P password -H localhost -S 9999 < ', conn)
     command_call_mock.assert_called_with('echo "status();"| isql -U user -P password -H localhost -S 9999 ')