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
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