def test_non_replacement_does_not_activate_replacer(self):
     node = ast.parse('x = 1')
     replacer = NumberReplacer(1)
     replacer.visit(node)
     self.assertFalse(replacer.activation_record)
 def test_replacement_activated_replacer(self):
     node = ast.parse('x = 1')
     replacer = NumberReplacer(0)
     replacer.visit(node)
     self.assertTrue(replacer.activation_record)