コード例 #1
0
ファイル: testcase_test.py プロジェクト: DEEDS-TUD/Slingshot
 def test_get_id(self):
     """ get_id should return the supplied id """
     TEST_ID = 21
     tc = Testcase(TEST_ID, self.function_name,
             self.settings, self.work_dir, self.c_types, self.ret_val,
             self.fun_header)
     assert_equal(tc.get_id(), TEST_ID, 'ID is not matching')
コード例 #2
0
ファイル: testcase_test.py プロジェクト: DEEDS-TUD/Slingshot
 def test_get_name(self):
     """ get_name should return supplied name """
     TEST_NAME = 'TC_bar_42'
     tc = Testcase(self.testcase_id, 'bar', self.settings,
             self.work_dir, self.c_types, self.ret_val, self.fun_header)
     assert_equal(tc.get_name(), TEST_NAME,
     'Name is not matching: {0} != {1}'.format(tc.get_name(), TEST_NAME))
コード例 #3
0
 def test_get_id(self):
     """ get_id should return the supplied id """
     TEST_ID = 21
     tc = Testcase(TEST_ID, self.function_name, self.settings,
                   self.work_dir, self.c_types, self.ret_val,
                   self.fun_header)
     assert_equal(tc.get_id(), TEST_ID, 'ID is not matching')
コード例 #4
0
ファイル: testcase_test.py プロジェクト: DEEDS-TUD/Slingshot
 def test_get_setting(self):
     """ get_setting should return supplied setting """
     TEST_SETTING = self.settings
     tc = Testcase(self.testcase_id, self.function_name,
             TEST_SETTING, self.work_dir, self.c_types, self.ret_val,
             self.fun_header)
     assert_equal(tc.get_settings(), TEST_SETTING,
             'Setting is not matching')
コード例 #5
0
 def test_get_setting(self):
     """ get_setting should return supplied setting """
     TEST_SETTING = self.settings
     tc = Testcase(self.testcase_id, self.function_name, TEST_SETTING,
                   self.work_dir, self.c_types, self.ret_val,
                   self.fun_header)
     assert_equal(tc.get_settings(), TEST_SETTING,
                  'Setting is not matching')
コード例 #6
0
ファイル: testcase_test.py プロジェクト: DEEDS-TUD/Slingshot
 def test_generate_files(self):
     """ generate_files should create the header file for
     this testcase """
     tc = Testcase(self.testcase_id, self.function_name,
             self.settings, self.work_dir, self.c_types, self.ret_val,
             self.fun_header)
     tc.generate_files()
     self.tempdir.check('TC_test_function_name_42.cpp',
             'TC_test_function_name_42.h')
コード例 #7
0
 def test_generate_files(self):
     """ generate_files should create the header file for
     this testcase """
     tc = Testcase(self.testcase_id, self.function_name, self.settings,
                   self.work_dir, self.c_types, self.ret_val,
                   self.fun_header)
     tc.generate_files()
     self.tempdir.check('TC_test_function_name_42.cpp',
                        'TC_test_function_name_42.h')
コード例 #8
0
 def test_get_name(self):
     """ get_name should return supplied name """
     TEST_NAME = 'TC_bar_42'
     tc = Testcase(self.testcase_id, 'bar', self.settings, self.work_dir,
                   self.c_types, self.ret_val, self.fun_header)
     assert_equal(
         tc.get_name(), TEST_NAME,
         'Name is not matching: {0} != {1}'.format(tc.get_name(),
                                                   TEST_NAME))