          with self.assertRaises(EmptyResultSet):
              w.as_sql(compiler, connection)
          w.negate()
          self.assertEqual(w.as_sql(compiler, connection), ("", []))
          w = WhereNode(children=[empty_w, NothingNode()], connector="OR")
          self.assertEqual(w.as_sql(compiler, connection), ("", []))
          w = WhereNode(children=[empty_w, NothingNode()], connector="AND")
          with self.assertRaises(EmptyResultSet):
              w.as_sql(compiler, connection)
  
 
</s> remove         w = WhereNode(children=[empty_w, NothingNode()], connector="AND")
 </s> add         w = WhereNode(children=[empty_w, NothingNode()], connector=AND) </s> remove         w.connector = "OR"
 </s> add         w.connector = OR </s> remove         w = WhereNode(children=[NothingNode()], connector="OR")
 </s> add         w = WhereNode(children=[NothingNode()], connector=OR) </s> remove         w = WhereNode(children=[self.DummyNode(), self.DummyNode()], connector="OR")
 </s> add         w = WhereNode(children=[self.DummyNode(), self.DummyNode()], connector=OR) </s> remove         w = WhereNode(children=[NothingNode(), self.DummyNode()], connector="OR")
 </s> add         w = WhereNode(children=[NothingNode(), self.DummyNode()], connector=OR)
        w = WhereNode(children=[empty_w, NothingNode()], connector=OR)
          with self.assertRaises(EmptyResultSet):
              w.as_sql(compiler, connection)
          w.negate()
          self.assertEqual(w.as_sql(compiler, connection), ("", []))
        w = WhereNode(children=[empty_w, NothingNode()], connector=OR)
          self.assertEqual(w.as_sql(compiler, connection), ("", []))
          w = WhereNode(children=[empty_w, NothingNode()], connector="AND")
          with self.assertRaises(EmptyResultSet):
              w.as_sql(compiler, connection)
  
keep keep keep keep replace keep keep keep keep keep
 Used AND, OR, XOR constants instead of hard-coded values. 
tests/queries/tests.py