import python import semmle.python.dataflow.new.DataFlow import TestUtilities.InlineExpectationsTest import experimental.dataflow.testConfig module CaptureTest implements TestSig { string getARelevantTag() { result = "captured" } predicate hasActualResult(Location location, string element, string tag, string value) { exists(DataFlow::Node sink | TestFlow::flowTo(sink) | location = sink.getLocation() and tag = "captured" and value = "" and element = sink.toString() ) } } import MakeTest