summaryrefslogtreecommitdiff
path: root/invest-applet/invest/test.py
diff options
context:
space:
mode:
authorStefano Karapetsas <[email protected]>2012-01-27 11:19:49 +0100
committerStefano Karapetsas <[email protected]>2012-01-27 11:19:49 +0100
commitc7b2e180e6cfb4aec22f8ab3e0aebc6773032216 (patch)
tree06712266abecdc4b8980885c2547d0087fa68fc7 /invest-applet/invest/test.py
parent843576a9e066a18dce191d96eb962d3b0bbde63b (diff)
downloadmate-applets-c7b2e180e6cfb4aec22f8ab3e0aebc6773032216.tar.bz2
mate-applets-c7b2e180e6cfb4aec22f8ab3e0aebc6773032216.tar.xz
'invest' python module is now 'mate-invest' to solve conflicts with gnome
Diffstat (limited to 'invest-applet/invest/test.py')
-rwxr-xr-xinvest-applet/invest/test.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/invest-applet/invest/test.py b/invest-applet/invest/test.py
index aea5f5f3..47ae2167 100755
--- a/invest-applet/invest/test.py
+++ b/invest-applet/invest/test.py
@@ -9,7 +9,7 @@ sys.path.insert(0, abspath(dirname(__file__) + "/.."))
print sys.path
import quotes
-import invest
+import mate-invest
def null_function (*args):
pass
@@ -17,7 +17,7 @@ def null_function (*args):
class TestQuotes (unittest.TestCase):
def testQuoteUpdater_populate (self):
qu = quotes.QuoteUpdater (null_function, null_function)
- invest.STOCKS = {'GOGO': {'label': "Google Inc.", 'purchases': [{'amount' : 1, 'comission' : 0.0, 'bought': 0.0}]}, 'JAVA': {'label':"Sun Microsystems Inc.", 'purchases': [{'amount' : 1, 'comission' : 0.0, 'bought': 0.0}]}}
+ mate-invest.STOCKS = {'GOGO': {'label': "Google Inc.", 'purchases': [{'amount' : 1, 'comission' : 0.0, 'bought': 0.0}]}, 'JAVA': {'label':"Sun Microsystems Inc.", 'purchases': [{'amount' : 1, 'comission' : 0.0, 'bought': 0.0}]}}
quote = { 'GOGO': { "ticker": 'GOGO', "trade": 386.91, "time": "10/3/2008", "date": "4.00pm", "variation": -3.58, "open": 397.14, "variation_pct": 10 }}
qu.populate (quote)
self.assertEqual (qu.quotes_valid, True)