__author__ = 'cyoun'
import unittest
import sys
import os.path

curr_folder = os.path.abspath(os.path.dirname(__file__))
sys.path.insert(0, '%s/../../../' % curr_folder)
print curr_folder

from src.yoda_tools.yoda import validate_timeseries

class validateYodaTestCases(unittest.TestCase):
    def test_goodFile(self, file='../examples/YODA_TimeSeries_Example1_Template_0.3.0-alpha_fixed.yaml'):
        flag =  validate_timeseries(file)
        self.assertTrue(flag, 'Timeseries_Template_Working_my_version.yaml failed')

    def test_badFile(self, file='../examples/YODA_TimeSeries_Example1_Template_0.3.0-alpha.yaml'):
        flag =  validate_timeseries(file)
        self.assertFalse(flag,'Timeseries_Template_Working.yaml failed to find errors' )


@@ -466,46 +466,59 @@
 g, '
+YODA_
 Time
-s
+S
 eries_
-Template_Working_my_version
+Example1_Template_0.3.0-alpha_fixed
 .yam
@@ -705,35 +705,53 @@
 ag,'
+YODA_
 Time
-s
+S
 eries_
-Template_Working
+Example1_Template_0.3.0-alpha
 .yam

update text