blob: de8baa3d4ac74f37ea720521e6f8ce9b968da6ae (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
import unittest
import dialoguer
class TestSaveEnvironment(unittest.TestCase):
# @classmethod
# def setUpClass(cls):
# source_file_path = __file__.replace('.py', '.r')
# cls.src_fil_r = dialoguer.Dialogue(source_file_path)
# @classmethod
# def tearDownClass(cls):
# cls.src_fil_r.close()
def setUp(self):
source_file_path = __file__.replace('.py', '.r')
self.src_fil_r = dialoguer.Dialogue(source_file_path)
def tearDown(self):
self.src_fil_r.close()
def test_save_environment(self):
str_1 = 'Test string 1'
self.src_fil_r.assign_variable('str_1', str_1)
str_ret_1 = self.src_fil_r.save_environment()
|