Ejemplo n.º 1
0
 def test_filter_session_statement_noop(self):
     """If database_id is not SQL-session, it's a no-op."""
     statement = "SELECT 'gone'"
     self.assertEqual(statement,
                      _filter_session_statement('SQL-launchpad', statement))
Ejemplo n.º 2
0
 def test_filter_session_statement_noop(self):
     """If database_id is not SQL-session, it's a no-op."""
     statement = "SELECT 'gone'"
     self.assertEqual(
         statement,
         _filter_session_statement('SQL-launchpad', statement))
Ejemplo n.º 3
0
 def test_filter_session_statement(self):
     """Removes quoted strings if database_id is SQL-session."""
     statement = "SELECT 'gone'"
     self.assertEqual("SELECT '%s'",
                      _filter_session_statement('SQL-session', statement))
Ejemplo n.º 4
0
 def test_filter_session_statement(self):
     """Removes quoted strings if database_id is SQL-session."""
     statement = "SELECT 'gone'"
     self.assertEqual(
         "SELECT '%s'",
         _filter_session_statement('SQL-session', statement))