###
# Copyright (c) 2012-2014, spline
# All rights reserved.
#
#
###

from supybot.test import *

class WolframAlphaTestCase(PluginTestCase):
    plugins = ('WolframAlpha',)

    def testWolframAlpha(self):
        conf.supybot.plugins.WolframAlpha.apiKey.setValue('VV6W6X-R7389R5AU5')
        conf.supybot.plugins.WolframAlpha.disableANSI.setValue('True')
        self.assertResponse('wolframalpha --shortest 2+2', '2+2 :: 4')

# vim:set shiftwidth=4 tabstop=4 expandtab textwidth=79:

@@ -63,16 +63,26 @@
 %0A#%0A###%0A%0A
+import os%0A
 from sup
@@ -101,16 +101,17 @@
 port *%0A%0A
+%0A
 class Wo
@@ -178,16 +178,20 @@
 lpha',)%0A
+    
 %0A    def
@@ -195,31 +195,62 @@
 def 
-testWolframAlpha(self):
+setUp(self):%0A        apiKey = os.environ.get('apiKey')
 %0A   
@@ -308,28 +308,48 @@
 lue(
-'VV6W6X-R7389R5AU5')
+apiKey)%0A%0A    def testWolframAlpha(self):
 %0A   

Move apiKey out of test files.