File tree Expand file tree Collapse file tree 1 file changed +3
-9
lines changed Expand file tree Collapse file tree 1 file changed +3
-9
lines changed Original file line number Diff line number Diff line change @@ -120,6 +120,9 @@ def test_text(self):
120120    def  test_url (self ):
121121        self .assertEquality (URLModel , "https://example.com" )
122122
123+     def  test_uuid (self ):
124+         self .assertEquality (UUIDModel , uuid .uuid4 ())
125+ 
123126    # Range fields 
124127    def  test_big_integer (self ):
125128        self .assertRange (BigIntegerModel , low = 100 , high = 200 , threshold = 150 )
@@ -215,12 +218,3 @@ def test_deconstruct_preserves_queries_and_rewrites_path(self):
215218        self .assertEqual (new_field .queries , field .queries )
216219        self .assertIsNot (new_field , field )
217220        self .assertEqual (new_field .max_length , field .max_length )
218- 
219- 
220- class  UUIDFieldTests (EncryptionTestCase ):
221-     def  test_uuid_field (self ):
222-         test_uuid  =  uuid .uuid4 ()
223-         UUIDModel .objects .create (value = test_uuid )
224-         fetched  =  UUIDModel .objects .get (value = test_uuid )
225-         self .assertEqual (fetched .value , test_uuid )
226-         self .assertEncrypted (fetched , "value" )
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments