def showsGraph(test): test.test = lambda: assertlib.fileContainsFunctionCalls( _fileName, "savefig") test.description = lambda: "stores a graph"
def showsGraph(test): test.test = lambda: assertlib.fileContainsFunctionCalls( _fileName, "savefig") or assertlib.fileContainsFunctionCalls( _fileName, "show") test.description = lambda: "slaat een grafiek op, of laat een grafiek zien"
def showsGraph(test): test.test = lambda: assertlib.fileContainsFunctionCalls( _fileName, "savefig") or assertlib.fileContainsFunctionCalls( _fileName, "show") test.description = lambda: "either saves a plot to image, or shows it"
def showsGraph(test): test.test = lambda: assertlib.fileContainsFunctionCalls( _fileName, "savefig") or assertlib.fileContainsFunctionCalls( _fileName, "show") test.description = lambda: "Either saves a graph into a file, or shows a graph on the screen."
def hasTitle(test): test.test = lambda: asserts.fileContainsFunctionCalls(_fileName, "title") test.description = lambda: "graph has a title"
def hasLabels(test): test.test = lambda: asserts.fileContainsFunctionCalls( _fileName, "xlabel", "ylabel") test.description = lambda: "graph has labels along the x-axis and y-axis"
def showsGraph(test): test.test = lambda : asserts.fileContainsFunctionCalls(_fileName, "plot") or \ asserts.fileContainsFunctionCalls(_fileName, "bar") test.description = lambda: "shows a graph for the number of summer days"
def plotsGraph(test): test.test = lambda : asserts.fileContainsFunctionCalls(_fileName, "plot") or \ asserts.fileContainsFunctionCalls(_fileName, "bar") test.description = lambda : "plots a graph"