@@ -32,28 +32,28 @@ class ProtoConversionTestCase:
3232 """The upper bound value to set."""
3333
3434
35- def test_bounds_creation () -> None :
35+ def test_creation () -> None :
3636 """Test creation of Bounds with valid values."""
3737 bounds = Bounds (lower = - 10.0 , upper = 10.0 )
3838 assert bounds .lower == - 10.0
3939 assert bounds .upper == 10.0
4040
4141
42- def test_bounds_invalid_values () -> None :
42+ def test_invalid_values () -> None :
4343 """Test that Bounds creation fails with invalid values."""
4444 with pytest .raises (
4545 ValueError , match = "Lower bound must be less than or equal to upper bound"
4646 ):
4747 Bounds (lower = 10.0 , upper = - 10.0 )
4848
4949
50- def test_bounds_str_representation () -> None :
50+ def test_str_representation () -> None :
5151 """Test string representation of Bounds."""
5252 bounds = Bounds (lower = - 10.0 , upper = 10.0 )
5353 assert str (bounds ) == "[-10.0, 10.0]"
5454
5555
56- def test_bounds_equality () -> None :
56+ def test_equality () -> None :
5757 """Test equality comparison of Bounds objects."""
5858 bounds1 = Bounds (lower = - 10.0 , upper = 10.0 )
5959 bounds2 = Bounds (lower = - 10.0 , upper = 10.0 )
@@ -64,7 +64,7 @@ def test_bounds_equality() -> None:
6464 assert bounds2 != bounds3
6565
6666
67- def test_bounds_hash () -> None :
67+ def test_hash () -> None :
6868 """Test that Bounds objects can be used in sets and as dictionary keys."""
6969 bounds1 = Bounds (lower = - 10.0 , upper = 10.0 )
7070 bounds2 = Bounds (lower = - 10.0 , upper = 10.0 )
@@ -111,7 +111,7 @@ def test_bounds_hash() -> None:
111111 ],
112112 ids = lambda case : case .name ,
113113)
114- def test_bounds_from_proto (case : ProtoConversionTestCase ) -> None :
114+ def test_from_proto (case : ProtoConversionTestCase ) -> None :
115115 """Test conversion from protobuf message to Bounds.
116116
117117 Args:
0 commit comments