Skip to content
Browse files

Added first unit test

  • Loading branch information...
1 parent fec3e27 commit edbd4d3e6ddcd4ac604d71291a9a136dd9516ee6 @petewarden petewarden committed Mar 27, 2011
Showing with 19 additions and 0 deletions.
  1. +19 −0 tests/bug_0004.py
View
19 tests/bug_0004.py
@@ -0,0 +1,19 @@
+#!/usr/bin/env python
+#
+# A test case to reproduce https://github.com/petewarden/dstk/issues/4
+#
+# Calls the street2coordinates API repeatedly until it fails
+
+import dstk
+
+dstk = dstk.DSTK()
+
+counter = 0
+while True:
+
+ test_input = '2543 Graystone Place, Simi Valley, CA 93065'
+
+ result = dstk.street2coordinates(test_input)
+
+ counter += 1
+ print str(counter)

0 comments on commit edbd4d3

Please sign in to comment.
Something went wrong with that request. Please try again.