@@ -30,7 +30,6 @@ class BaseModelsTests(unittest.TestCase):
30
30
31
31
def test_set_and_get_attrs (self ):
32
32
"""Test setting and getting of domain model attributes."""
33
-
34
33
class User (models .DomainModel ):
35
34
"""Test user domain model."""
36
35
@@ -130,7 +129,6 @@ class Model(models.DomainModel):
130
129
131
130
def test_field_could_not_be_rebound_in_different_model (self ):
132
131
"""Test that field could not be rebound."""
133
-
134
132
class Model1 (models .DomainModel ):
135
133
"""Test model."""
136
134
@@ -159,7 +157,6 @@ class ModelSetterGetterTests(unittest.TestCase):
159
157
160
158
def test_get_method_on_undefined (self ):
161
159
"""Test method get of Model."""
162
-
163
160
class Model (models .DomainModel ):
164
161
"""Test model."""
165
162
field = fields .Int ()
@@ -213,7 +210,6 @@ class Model(models.DomainModel):
213
210
214
211
def test_get_method_on_bool (self ):
215
212
"""Test method get on Bool of Model."""
216
-
217
213
class Model (models .DomainModel ):
218
214
"""Test model."""
219
215
field = fields .Bool ()
@@ -426,7 +422,6 @@ class ModelReprTests(unittest.TestCase):
426
422
427
423
def test_repr (self ):
428
424
"""Test model __repr__()."""
429
-
430
425
class User (models .DomainModel ):
431
426
"""Test user domain model."""
432
427
@@ -461,7 +456,6 @@ class ModelStrTests(unittest.TestCase):
461
456
462
457
def test_str_with_single_view_key (self ):
463
458
"""Test model __str__()."""
464
-
465
459
class User (models .DomainModel ):
466
460
"""Test user domain model."""
467
461
@@ -495,7 +489,6 @@ class User(models.DomainModel):
495
489
496
490
def test_str_with_multiple_view_keys (self ):
497
491
"""Test model __str__()."""
498
-
499
492
class User (models .DomainModel ):
500
493
"""Test user domain model."""
501
494
@@ -529,7 +522,6 @@ class User(models.DomainModel):
529
522
530
523
def test_str_without_view_key (self ):
531
524
"""Test model __str__()."""
532
-
533
525
class User (models .DomainModel ):
534
526
"""Test user domain model."""
535
527
@@ -556,7 +548,6 @@ class ModelSlotsOptimizationTests(unittest.TestCase):
556
548
557
549
def test_model_slots (self ):
558
550
"""Test model slots optimization."""
559
-
560
551
class Model (models .DomainModel ):
561
552
"""Test model."""
562
553
@@ -571,7 +562,6 @@ class Model(models.DomainModel):
571
562
572
563
def test_model_slots_disabling (self ):
573
564
"""Test disabling of model slots optimization."""
574
-
575
565
class Model (models .DomainModel ):
576
566
"""Test model."""
577
567
@@ -591,7 +581,6 @@ class ModelsEqualityComparationsTests(unittest.TestCase):
591
581
592
582
def test_models_equal_single_key (self ):
593
583
"""Test models equality comparator based on unique key."""
594
-
595
584
class Model (models .DomainModel ):
596
585
"""Test domain model with single unique key."""
597
586
@@ -609,7 +598,6 @@ class Model(models.DomainModel):
609
598
610
599
def test_models_not_equal_single_key (self ):
611
600
"""Test that models are not equal."""
612
-
613
601
class Model (models .DomainModel ):
614
602
"""Test domain model with single unique key."""
615
603
@@ -627,7 +615,6 @@ class Model(models.DomainModel):
627
615
628
616
def test_models_equal_multiple_keys (self ):
629
617
"""Test models equality comparator based on unique key."""
630
-
631
618
class Model (models .DomainModel ):
632
619
"""Test domain model with multiple unique key."""
633
620
@@ -648,7 +635,6 @@ class Model(models.DomainModel):
648
635
649
636
def test_models_not_equal_multiple_keys (self ):
650
637
"""Test that models are not equal."""
651
-
652
638
class Model (models .DomainModel ):
653
639
"""Test domain model with multiple unique key."""
654
640
@@ -669,7 +655,6 @@ class Model(models.DomainModel):
669
655
670
656
def test_models_not_equal_multiple_keys_first_equal (self ):
671
657
"""Test that models are not equal."""
672
-
673
658
class Model (models .DomainModel ):
674
659
"""Test domain model with multiple unique key."""
675
660
@@ -690,7 +675,6 @@ class Model(models.DomainModel):
690
675
691
676
def test_models_not_equal_different_classes (self ):
692
677
"""Test that models are not equal."""
693
-
694
678
class Model1 (models .DomainModel ):
695
679
"""Test domain model with single unique key."""
696
680
@@ -714,7 +698,6 @@ class Model2(models.DomainModel):
714
698
715
699
def test_models_not_equal_scalar_value (self ):
716
700
"""Test that model and scalar value are not equal."""
717
-
718
701
class Model (models .DomainModel ):
719
702
"""Test domain model with single unique key."""
720
703
@@ -729,7 +712,6 @@ class Model(models.DomainModel):
729
712
730
713
def test_models_not_equal_unknown_unique_key (self ):
731
714
"""Test that models are not equal."""
732
-
733
715
class Model (models .DomainModel ):
734
716
"""Test domain model without unique key."""
735
717
@@ -746,7 +728,6 @@ class Model(models.DomainModel):
746
728
747
729
def test_same_models_equal_unknown_unique_key (self ):
748
730
"""Test that models are not equal."""
749
-
750
731
class Model (models .DomainModel ):
751
732
"""Test domain model without unique key."""
752
733
@@ -760,7 +741,6 @@ class Model(models.DomainModel):
760
741
761
742
def test_non_equal_models_in_set_single_key (self ):
762
743
"""Test that non-equal models work properly with sets."""
763
-
764
744
class Model (models .DomainModel ):
765
745
"""Test domain model with single unique key."""
766
746
@@ -783,7 +763,6 @@ class Model(models.DomainModel):
783
763
784
764
def test_equal_models_in_set_single_key (self ):
785
765
"""Test that equal models work properly with sets."""
786
-
787
766
class Model (models .DomainModel ):
788
767
"""Test domain model with single unique key."""
789
768
@@ -806,7 +785,6 @@ class Model(models.DomainModel):
806
785
807
786
def test_non_equal_models_in_set_multiple_keys (self ):
808
787
"""Test that non-equal models work properly with sets."""
809
-
810
788
class Model (models .DomainModel ):
811
789
"""Test domain model with multiple unique key."""
812
790
@@ -833,7 +811,6 @@ class Model(models.DomainModel):
833
811
834
812
def test_equal_models_in_set_multiple_keys (self ):
835
813
"""Test that equal models work properly with sets."""
836
-
837
814
class Model (models .DomainModel ):
838
815
"""Test domain model with multiple unique key."""
839
816
@@ -860,7 +837,6 @@ class Model(models.DomainModel):
860
837
861
838
def test_non_equal_models_in_set_without_unique_key (self ):
862
839
"""Test that non-equal models work properly with sets."""
863
-
864
840
class Model (models .DomainModel ):
865
841
"""Test domain model without unique key."""
866
842
@@ -882,7 +858,6 @@ class Model(models.DomainModel):
882
858
883
859
def test_equal_models_in_set_without_unique_key (self ):
884
860
"""Test that equal models work properly with sets."""
885
-
886
861
class Model (models .DomainModel ):
887
862
"""Test domain model without unique key."""
888
863
@@ -902,7 +877,6 @@ class Model(models.DomainModel):
902
877
903
878
def test_models_collection_extending (self ):
904
879
"""Test model's collection extending."""
905
-
906
880
class Credit (models .DomainModel ):
907
881
"""Test credit domain model."""
908
882
0 commit comments