def test_reset_environment_name(self): activate_environment('ENVIRONMENT') t1 = MockClass() t1.initilize_once() assert_equal(t1.count, 1) reset_environment('ENVIRONMENT') t1.initilize_once() assert_equal(t1.count, 2)
def test_reset_environment_name(self): activate_environment('ENVIRONMENT') t1 = TestClass() t1.initilize_once() assert_equal(t1.count, 1) reset_environment('ENVIRONMENT') t1.initilize_once() assert_equal(t1.count, 2)
def test_reset_current_environment(self): activate_environment('CURRENT_ENVIRONMENT') t1 = TestClass() t1.initilize_once() assert_equal(t1.count, 1) reset_environment() t1.initilize_once() assert_equal(t1.count, 2)
def tearDown(self): reset_environment('TEST_ENVIRONMENT')
def tearDown(self): reset_environment('TEST_ENVIRONMENT')