From c6faf3d11d81756dd96002ce34afaa11c2410a7f Mon Sep 17 00:00:00 2001 From: Alexander Bruy Date: Thu, 4 Oct 2012 13:31:41 +0300 Subject: [PATCH] add license headers to some tests --- tests/src/python/test_qgsmemoryprovider.py | 17 +++++++++++++++++ tests/src/python/test_qgsrectangle.py | 17 +++++++++++++++++ tests/src/python/test_qgsspatialindex.py | 20 ++++++++++++++++++++ 3 files changed, 54 insertions(+) diff --git a/tests/src/python/test_qgsmemoryprovider.py b/tests/src/python/test_qgsmemoryprovider.py index 8689a8d52fca..a937c8327a23 100644 --- a/tests/src/python/test_qgsmemoryprovider.py +++ b/tests/src/python/test_qgsmemoryprovider.py @@ -1,3 +1,20 @@ +# -*- coding: utf-8 -*- +''' + test_qgsmemoryprovider.py + -------------------------------------- + Date : 17 Aug 2012 + Copyright : (C) 2012 by Alexander Bruy + email : alexander dot bruy at gmail dot com + *************************************************************************** + * * + * This program is free software; you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation; either version 3 of the License, or * + * (at your option) any later version. * + * * + ***************************************************************************/ +''' + import unittest from qgis.core import (QGis, diff --git a/tests/src/python/test_qgsrectangle.py b/tests/src/python/test_qgsrectangle.py index 63e3ea195692..d83e0e8ed4ca 100644 --- a/tests/src/python/test_qgsrectangle.py +++ b/tests/src/python/test_qgsrectangle.py @@ -1,3 +1,20 @@ +# -*- coding: utf-8 -*- +''' + test_qgsrectangle.py + -------------------------------------- + Date : 07 Sep 2012 + Copyright : (C) 2012 by Alexander Bruy + email : alexander dot bruy at gmail dot com + *************************************************************************** + * * + * This program is free software; you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation; either version 3 of the License, or * + * (at your option) any later version. * + * * + ***************************************************************************/ +''' + import unittest from qgis.core import (QGis, diff --git a/tests/src/python/test_qgsspatialindex.py b/tests/src/python/test_qgsspatialindex.py index c222b183bc71..09692a678f08 100644 --- a/tests/src/python/test_qgsspatialindex.py +++ b/tests/src/python/test_qgsspatialindex.py @@ -1,3 +1,20 @@ +# -*- coding: utf-8 -*- +''' + test_qgsspatialindex.py + -------------------------------------- + Date : 07 Sep 2012 + Copyright : (C) 2012 by Alexander Bruy + email : alexander dot bruy at gmail dot com + *************************************************************************** + * * + * This program is free software; you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation; either version 3 of the License, or * + * (at your option) any later version. * + * * + ***************************************************************************/ +''' + import unittest from qgis.core import (QgsSpatialIndex, @@ -44,3 +61,6 @@ def testIndex(self): myMessage = ('Expected: %s\nGot: %s\n' % ([0, 1, 5], fids)) assert fids == [0, 1, 5], myMessage + +if __name__ == '__main__': + unittest.main()