from pysal.model.spvcm import lower_level as lower
from pysal.model.spvcm.tests.utils import Model_Mixin
from pysal.model.spvcm.abstracts import Trace
import unittest as ut
import pandas as pd
import os

FULL_PATH = os.path.dirname(os.path.abspath(__file__))

class Test_Lower_SE(ut.TestCase, Model_Mixin):
    def setUp(self):
        super(Test_Lower_SE, self).build_self()
        self.cls = lower.Lower_SE
        del self.inputs["M"]
        self.inputs['n_samples'] = 0
        instance = self.cls(**self.inputs)
        self.answer_trace = Trace.from_csv(FULL_PATH + '/data/lower_se.csv')
