def test_PathInvalido(self): try: pyFiles = TBTAFDiscoverer._findPyFiles("./sample") except ValueError: pass else: self.fail("Valid path was provided")
def test_PathValido(self): try: pyFiles = TBTAFDiscoverer._findPyFiles("./samples") except ValueError as e: self.fail("Invalid path was provided") else: print pyFiles pass
def test_NoHayComentarioMultilinea(self): comment = TBTAFDiscoverer._readFirstMultilineComment('./samples/testBlank.py') if comment == "": pass else: self.fail("File has multiline comment")
def test_HayComentarioMultilinea(self): comment = TBTAFDiscoverer._readFirstMultilineComment('./samples/testCompleteAndValid.py') if comment == "": self.fail("File does not have multiline comment") else: pass