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