コード例 #1
0
 def test_render_validates_invalid_document(self):
     well_known = SocialRelayWellKnown(subscribe=True,
                                       tags=("foo", "bar"),
                                       scope="cities")
     with pytest.raises(ValidationError):
         well_known.render()
コード例 #2
0
 def test_render_validates_invalid_document(self):
     well_known = SocialRelayWellKnown(subscribe=True, tags=("foo", "bar"), scope="cities")
     with pytest.raises(ValidationError):
         well_known.render()
コード例 #3
0
 def test_render_validates_valid_document(self):
     well_known = SocialRelayWellKnown(subscribe=True,
                                       tags=("foo", "bar"),
                                       scope="tags")
     well_known.render()
コード例 #4
0
 def test_render_validates_valid_document(self):
     well_known = SocialRelayWellKnown(subscribe=True, tags=("foo", "bar"), scope="tags")
     well_known.render()