You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

19 lines
539 B

import unittest
from unittest import TestCase
import mock
from couchpotato.environment import Env
class EnvironmentBaseTest(TestCase):
def test_appname(self):
self.assertEqual('CouchPotato', Env.get('appname'))
def test_set_get_appname(self):
x = 'NEWVALUE'
Env.set('appname', x)
self.assertEqual(x, Env.get('appname'))
def test_get_softchroot(self):
from couchpotato.core.softchroot import SoftChroot
sc = Env.get('softchroot')
self.assertIsInstance(sc, SoftChroot)