def test_url(self): u,c = md.get_url( valid_url, config_1 ) self.assertEquals( u, valid_url['metadata']['metadata_url'] )
def test_bad_config(self): with self.assertRaises( md.MetadataException ): md.get_url( valid_uuid, config_2 )