#NEWLINE# def test_create_record_success( self ) : #NEWLINE# #INDENT# zone = self . driver . list_zones ( ) [ 0 ] #NEWLINE# RackspaceMockHttp . type = 'CREATE_RECORD' #NEWLINE# record = self . driver . create_record ( name = 'www' , zone = zone , type = RecordType . A , data = '127.1.1.1' ) #NEWLINE# self . assertEqual ( record . id , 'A-7423317' ) #NEWLINE# self . assertEqual ( record . name , 'www' ) #NEWLINE# self . assertEqual ( record . zone , zone ) #NEWLINE# self . assertEqual ( record . type , RecordType . A ) #NEWLINE# self . assertEqual ( record . data , '127.1.1.1' ) #NEWLINE# self . assertEqual ( zone . extra [ 'fqdn' ] , ( 'www.%s' % zone . domain ) )