928
928
expect (data ['indicator' ]['name' ]).to (
929
929
contain (u'Precio marginal en el servicio de respuesta activa de la demanda' )
930
930
)
931
+
932
+ with it ('Returns PrecioMercadoDiario instance' ):
933
+ e = Esios (self .token )
934
+ profile = PrecioMercadoDiario (e )
935
+ assert isinstance (profile , PrecioMercadoDiario )
936
+ data = profile .get (self .start_date , self .end_date )
937
+ expect (data ['indicator' ]['short_name' ]).to (
938
+ equal (u'Mercado SPOT' )
939
+ )
940
+ expect (data ['indicator' ]['name' ]).to (
941
+ contain (u'Precio mercado SPOT Diario' )
942
+ )
943
+
944
+ with it ('Returns PrecioDesviosSubir instance' ):
945
+ e = Esios (self .token )
946
+ profile = PrecioDesviosSubir (e )
947
+ assert isinstance (profile , PrecioDesviosSubir )
948
+ data = profile .get (self .start_date , self .end_date )
949
+ expect (data ['indicator' ]['short_name' ]).to (
950
+ equal (u'Desvíos a subir' )
951
+ )
952
+ expect (data ['indicator' ]['name' ]).to (
953
+ contain (u'Precio de cobro desvíos a subir' )
954
+ )
955
+
956
+ with it ('Returns PrecioDesviosBajar instance' ):
957
+ e = Esios (self .token )
958
+ profile = PrecioDesviosBajar (e )
959
+ assert isinstance (profile , PrecioDesviosBajar )
960
+ data = profile .get (self .start_date , self .end_date )
961
+ expect (data ['indicator' ]['short_name' ]).to (
962
+ equal (u'Desvíos a bajar' )
963
+ )
964
+ expect (data ['indicator' ]['name' ]).to (
965
+ contain (u'Precio de pago desvíos a bajar' )
966
+ )
0 commit comments