Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
F
fastkml
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Aurélien Vermylen
fastkml
Commits
125a7497
Commit
125a7497
authored
Sep 17, 2014
by
Ian Lee
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Second attempt to make unittest work with Python 2.6 by using unittest2 backport
parent
4e4b4ec2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
5 deletions
+6
-5
fastkml/test_main.py
fastkml/test_main.py
+5
-5
requirements/test.txt
requirements/test.txt
+1
-0
No files found.
fastkml/test_main.py
View file @
125a7497
...
...
@@ -15,7 +15,7 @@
# License along with this library; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
import
unittest
import
unittest
2
as
unittest
from
fastkml
import
kml
from
fastkml
import
styles
...
...
@@ -1964,7 +1964,7 @@ class BaseFeatureTestCase(unittest.TestCase):
def
test_address_value_error
(
self
):
f
=
kml
.
_Feature
()
with
self
.
assertRaises
(
ValueError
)
as
context
:
with
self
.
assertRaises
(
ValueError
):
f
.
address
=
123
def
test_phone_number_string
(
self
):
...
...
@@ -1979,7 +1979,7 @@ class BaseFeatureTestCase(unittest.TestCase):
def
test_phone_number_value_error
(
self
):
f
=
kml
.
_Feature
()
with
self
.
assertRaises
(
ValueError
)
as
context
:
with
self
.
assertRaises
(
ValueError
):
f
.
phoneNumber
=
123
...
...
@@ -2033,7 +2033,7 @@ class BaseOverlayTestCase(unittest.TestCase):
def
test_icon_raise_exception
(
self
):
o
=
kml
.
_Overlay
(
name
=
'An Overlay'
)
with
self
.
assertRaises
(
ValueError
)
as
context
:
with
self
.
assertRaises
(
ValueError
):
o
.
icon
=
12345
...
...
@@ -2077,7 +2077,7 @@ class GroundOverlayTestCase(unittest.TestCase):
self
.
assertEqual
(
self
.
g
.
altitudeMode
,
'absolute'
)
def
test_latlonbox_function_value_error
(
self
):
with
self
.
assertRaises
(
ValueError
)
as
context
:
with
self
.
assertRaises
(
ValueError
):
self
.
g
.
latLonBox
(
''
,
''
,
''
,
''
,
''
)
def
test_latlonbox_properties
(
self
):
...
...
requirements/test.txt
View file @
125a7497
-r common.txt
unittest2
pytest
pep8
coveralls
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment