Ejemplo n.º 1
0
def showsGraph(test):
    test.test = lambda: assertlib.fileContainsFunctionCalls(
        _fileName, "savefig")
    test.description = lambda: "stores a graph"
Ejemplo n.º 2
0
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"
Ejemplo n.º 3
0
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"
Ejemplo n.º 4
0
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."
Ejemplo n.º 5
0
def hasTitle(test):
    test.test = lambda: asserts.fileContainsFunctionCalls(_fileName, "title")
    test.description = lambda: "graph has a title"
Ejemplo n.º 6
0
def hasLabels(test):
    test.test = lambda: asserts.fileContainsFunctionCalls(
        _fileName, "xlabel", "ylabel")
    test.description = lambda: "graph has labels along the x-axis and y-axis"
Ejemplo n.º 7
0
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"
Ejemplo n.º 8
0
def plotsGraph(test):
	test.test = lambda : asserts.fileContainsFunctionCalls(_fileName, "plot") or \
		asserts.fileContainsFunctionCalls(_fileName, "bar")
	test.description = lambda : "plots a graph"