def test_should_return_routes_value_when_routes_property_is_called(self): # GIVEN routes = any_routes() has_route = network_data.HasRoute(routes, any_stable()) # WHEN actual_routes = has_route.routes # THEN self.assertEqual(routes, actual_routes)
def test_should_return_stable_value_when_stable_property_is_called(self): # GIVEN stable = any_stable() has_route = network_data.HasRoute(any_routes(), stable) # WHEN actual_stable = has_route.stable # THEN self.assertEqual(stable, actual_stable)
def any_has_route(): return network_data.HasRoute(any_routes(), any_stable())