<s> import unittest <EOL> from cybox . utils . normalize import normalize_object_properties <EOL> from cybox . objects . file_object import File <EOL> from cybox . objects . win_registry_key_object import WinRegistryKey , RegistryValues , RegistryValue <EOL> from cybox . objects . process_object import Process , ImageInfo <EOL> from cybox . objects . mutex_object import Mutex <EOL> class TestNormalization ( unittest . TestCase ) : <EOL> def test_file_path ( self ) : <EOL> file_path_string = "<STR_LIT>" <EOL> normalized_file_path_string = "<STR_LIT>" <EOL> file_obj = File ( ) <EOL> file_obj . file_path = file_path_string <EOL> normalize_object_properties ( file_obj ) <EOL> self . assertEqual ( file_obj . file_path . value , normalized_file_path_string ) <EOL> def test_registry_value_data ( self ) : <EOL> file_path_string = "<STR_LIT>" <EOL> normalized_file_path_string = "<STR_LIT>" <EOL> registry_key_obj = WinRegistryKey ( ) <EOL> registry_key_obj . values = RegistryValues ( ) <EOL> registry_value = RegistryValue ( ) <EOL> registry_value . data = file_path_string <EOL> registry_key_obj . values . append ( registry_value ) <EOL> normalize_object_properties ( registry_key_obj ) <EOL> self . assertEqual ( registry_key_obj . values [ <NUM_LIT:0> ] . data . value , normalized_file_path_string ) <EOL> def test_registry_hive ( self ) : <EOL> hive_string = "<STR_LIT>" <EOL> normalized_hive_string = "<STR_LIT>" <EOL> registry_key_obj = WinRegistryKey ( ) <EOL> registry_key_obj . hive = hive_string <EOL> normalize_object_properties ( registry_key_obj ) <EOL> self . assertEqual ( registry_key_obj . hive . value , normalized_hive_string ) <EOL> def test_process_image_info_path ( self ) : <EOL> file_path_string = "<STR_LIT>" <EOL> normalized_file_path_string = "<STR_LIT>" <EOL> process_obj = Process ( ) <EOL> process_obj . image_info = ImageInfo ( ) <EOL> process_obj . image_info . path = file_path_string <EOL> normalize_object_properties ( process_obj ) <EOL> self . assertEqual ( process_obj . image_info . path . value , normalized_file_path_string ) <EOL> if __name__ == "<STR_LIT:__main__>" : <EOL> unittest . main ( ) </s>
