예제 #1
0
 def test_different_layout_equality(self):
     a = Attribute.from_size(4)
     b = Attribute.from_size(4)
     c = Attribute.from_family("aaaa")
     assert not c == b
     assert a == b
예제 #2
0
 def test_from_family(self):
     a = Attribute.from_family("Roboto", 4, 7)
     b = Attribute.from_family("Roboto", 4, 7)
     assert a.start_index == 4
     assert a.end_index == 7
     assert a == b