def testShouldReturnSpecificConfigFile(self): expected = os.path.abspath(os.path.join(settings.PROJECT_DIR, 'analyse/tests/fixtures/config/')) config = Configs(expected) self.assertEquals(expected, config.abspath())
def testShouldReturnTheAbsolutePathOfTheDefaultConfigFile(self): expected = os.path.abspath(os.path.join(settings.PROJECT_DIR, 'configs')) os.environ.pop("CONFIGS_DIR") config = Configs() self.assertEquals(expected, config.abspath())