old_contents: 
  import collections
  import math
  import unittest
  
  import raco.fakedb
  from raco import RACompiler
  from raco.language import MyriaAlgebra
  
  class DatalogTestCase(unittest.TestCase):
  
      def setUp(self):
          self.db = raco.fakedb.FakeDatabase()
  
      def execute_query(self, query):
          '''Run a test query against the fake database'''
  
          dlog = RACompiler()
          dlog.fromDatalog(query)
  
          print dlog.logicalplan
  
          dlog.optimize(target=MyriaAlgebra,
                        eliminate_common_subexpressions=False)
  
  #        print dlog.physicalplan
  
          op = dlog.physicalplan[0][1]
          output_op = raco.algebra.StoreTemp('__OUTPUT__', op)
          self.db.evaluate(output_op)
          return self.db.get_temp_table('__OUTPUT__')
  
      def run_test(self, query, expected):
          '''Execute a test query with an expected output'''
          actual = self.execute_query(query)
          self.assertEquals(actual, expected)
  
  
new_contents: 
  import collections
  import math
  import unittest
  
  import raco.fakedb
  from raco import RACompiler
  from raco.language import MyriaAlgebra
  
  class DatalogTestCase(unittest.TestCase):
  
      def setUp(self):
          self.db = raco.fakedb.FakeDatabase()
  
      def execute_query(self, query):
          '''Run a test query against the fake database'''
  
          dlog = RACompiler()
          dlog.fromDatalog(query)
  
  #        print dlog.logicalplan
  
          dlog.optimize(target=MyriaAlgebra,
                        eliminate_common_subexpressions=False)
  
  #        print dlog.physicalplan
  
          op = dlog.physicalplan[0][1]
          output_op = raco.algebra.StoreTemp('__OUTPUT__', op)
          self.db.evaluate(output_op)
          return self.db.get_temp_table('__OUTPUT__')
  
      def run_test(self, query, expected):
          '''Execute a test query with an expected output'''
          actual = self.execute_query(query)
          self.assertEquals(actual, expected)
  
  
subject: Remove debug print