"""
GOES LightCurve Tests
"""
from __future__ import absolute_import

import unittest
import sunpy.lightcurve

class TestGOESLightCurve(unittest.TestCase):
    
    def test_goes_range(self):
       lc1 = sunpy.lightcurve.GOESLightCurve.create('2012/06/01','2012/06/02')
       
       assert isinstance(lc1, sunpy.lightcurve.GOESLightCurve)
    
    def test_filename(self):
        lc1 = sunpy.lightcurve.GOESLightCurve.create('2012/06/01','2012/06/02')
        lc2 = sunpy.lightcurve.GOESLightCurve.create('2012/06/03','2012/06/04')
        #If the dataframes are non-idential it raises an error, if they are
        #identical it returns True
        with self.assertRaises(Exception) as context:
            (lc1.data == lc2.data).all()
        
        self.assertEqual(context.exception.message,
                         'Can only compare identically-labeled DataFrame objects')

@@ -336,24 +336,147 @@
 Curve)%0A    %0A
+    def compare(self,lc1,lc2):%0A        try:%0A            (lc1.data == lc2.data)%0A        except:%0A            raise Exception%0A
     def test
@@ -763,16 +763,183 @@
 ns True%0A
+        self.assertRaises(Exception, self.compare, lc1, lc2)%0A        %0A        #This snippet is better but python 2.7 only, maybe sometime it will be %0A        #useful%0A#
         
@@ -984,16 +984,17 @@
 ontext:%0A
+#
         
@@ -1026,16 +1026,17 @@
 ).all()%0A
+#
         
@@ -1028,32 +1028,33 @@
 all()%0A#        %0A
+#
         self.ass
@@ -1089,16 +1089,17 @@
 essage,%0A
+#
         
@@ -1172,9 +1172,8 @@
 bjects')
-%0A

fix test on 2.6