#NEWLINE# def test_id_attribute( self ) : #NEWLINE# #INDENT# faker = FakeResource ( fake_data ) #NEWLINE# self . assertEqual ( fake_id , faker . id ) #NEWLINE# faker . id_attribute = 'name' #NEWLINE# self . assertEqual ( fake_name , self . id ) #NEWLINE# faker . id_attribute = 'attr1' #NEWLINE# self . assertEqual ( fake_attr1 , faker . id ) #NEWLINE# faker . id_attribute = 'attr2' #NEWLINE# self . assertEqual ( fake_attr2 , faker . id ) #NEWLINE# faker . id_attribute = 'id' #NEWLINE# self . assertEqual ( fake_id , faker . id )