def setUp(self): """ create 'created_new_sample_script.py' file """ given_sample_script_file_name = "created_new_sample_script.py" _, self.actual_is_sample_script_present = create_sample_script( _created_sample_folder, given_sample_script_file_name) pass
def setUp(self): """ create 'created_new_sample_script.py' file """ _, actual_is_sample_script_present = create_sample_script() # Then self.assertTrue( actual_is_sample_script_present, f'actual_is_sample_script_present: {actual_is_sample_script_present} is not True' ) pass
def setUp(self): """ create 'created_new_sample_script.py' file """ self.samples = [ "created_new_sample_script.py", "created_new_sample_script_2.py", ] for sample in self.samples: self.actual_sample_script, self.actual_is_sample_script_present = create_sample_script( _created_sample_folder, sample) pass
def test_create_sample_script(self): """ """ # Given # When actual_sample_script_file_name, actual_is_sample_script_present = create_sample_script( ) # Then, actual_is_sample_script_present must be True self.assertTrue( actual_is_sample_script_present, f'actual_is_sample_script_present: {actual_is_sample_script_present}' ) self.assertTrue( actual_sample_script_file_name == _created_sample_file_name, f'actual_sample_script_file_name: "{actual_sample_script_file_name}" is not "{_created_sample_file_name}"!' )
def test_create_sample_script(self): """ """ # Given expected_sample_script_file_name = "created_new_sample_script.py" # When actual_sample_script_file_name, actual_is_sample_script_present = create_sample_script( _created_sample_folder, expected_sample_script_file_name) # Then, actual_is_sample_script_present must be True self.assertTrue( actual_is_sample_script_present, f'actual_is_sample_script_present: {actual_is_sample_script_present}' ) self.assertTrue( actual_sample_script_file_name == expected_sample_script_file_name, f'actual_sample_script_file_name: "{actual_sample_script_file_name}" is not "{expected_sample_script_file_name}"!' )