def test_data_uri_decode(self):
     eq_(appbase.try_get_data_uri(u'data:base64,dGhpcyBpcyBhIHRlc3Q='),
         'this is a test')
 def test_data_uri_unencoded(self):
     eq_(appbase.try_get_data_uri(u'data:this is a test'),
         'this is a test')
 def test_data_uri_unencoded_mime(self):
     eq_(appbase.try_get_data_uri(u'data:test/html;this is a test'),
         'this is a test')
 def test_data_uri_decode(self):
     eq_(appbase.try_get_data_uri(u"data:base64,dGhpcyBpcyBhIHRlc3Q="), "this is a test")
 def test_data_uri_unencoded(self):
     eq_(appbase.try_get_data_uri(u"data:this is a test"), "this is a test")
Example #6
0
 def test_data_uri_decode(self):
     eq_(appbase.try_get_data_uri(u'data:base64,dGhpcyBpcyBhIHRlc3Q='),
         'this is a test')
Example #7
0
 def test_data_uri_unencoded_mime(self):
     eq_(appbase.try_get_data_uri(u'data:test/html;this is a test'),
         'this is a test')
Example #8
0
 def test_data_uri_unencoded(self):
     eq_(appbase.try_get_data_uri(u'data:this is a test'), 'this is a test')