@@ -0,0 +1,1590 @@
+#!/usr/bin/python%0A#    Copyright 2017 Dhvani Patel%0A#%0A#    This file is part of UnnaturalCode.%0A#    %0A#    UnnaturalCode is free software: you can redistribute it and/or modify%0A#    it under the terms of the GNU Affero General Public License as published by%0A#    the Free Software Foundation, either version 3 of the License, or%0A#    (at your option) any later version.%0A#%0A#    UnnaturalCode is distributed in the hope that it will be useful,%0A#    but WITHOUT ANY WARRANTY; without even the implied warranty of%0A#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the%0A#    GNU Affero General Public License for more details.%0A#%0A#    You should have received a copy of the GNU Affero General Public License%0A#    along with UnnaturalCode.  If not, see %3Chttp://www.gnu.org/licenses/%3E.%0A%0A%0Afrom check_flake_syntax import checkFlakeSyntax%0Afrom compile_error import CompileError%0A%0Aimport unittest%0A%0AERROR_TEST = %22%22%22if(true)):%0A%09print (%22I am correct%22)%0A%22%22%22%0A%0Aclass TestStringMethods(unittest.TestCase):%0A%0A%09def test_syntax_ok(self):%0A%09%09toTest = checkFlakeSyntax('a=1+2')%0A%09%09self.assertTrue(toTest is None)%0A%09%09%0A%09def test_syntax_error(self):%0A%09%09toTest = checkFlakeSyntax(ERROR_TEST)%0A%09%09self.assertTrue(isinstance (toTest%5B0%5D, CompileError))%0A%09%09self.assertEqual(toTest%5B0%5D.filename, 'toCheck.py'.encode())%0A%09%09self.assertEqual(toTest%5B0%5D.line, 1)%0A%09%09self.assertEqual(toTest%5B0%5D.column, 9)%0A%09%09self.assertEqual(toTest%5B0%5D.functionname, None)%0A%09%09self.assertEqual(toTest%5B0%5D.text, 'invalid syntax'.encode())%0A%09%09self.assertEqual(toTest%5B0%5D.errorname, 'SyntaxError'.encode())%0A%09%0A%09%09%0Aif __name__ == '__main__':%0A    unittest.main()%0A

Add test_flake