def test_content_type(self): e = DataUrlElement(self.EXAMPLE_URL) self.assertEqual(e.content_type(), 'image/png')
def test_content_type(self): e = DataUrlElement(self.EXAMPLE_URL) self.assertEqual(e.content_type(), 'image/png')
def test_get_bytes_from_url(self): e = DataUrlElement(self.EXAMPLE_URL) self.assertEqual(e.get_bytes(), open(self.EXAMPLE_PTH, 'rb').read()) self.assertEqual(e.content_type(), 'image/png')
def test_get_bytes_from_url(self): e = DataUrlElement(self.EXAMPLE_URL) self.assertEqual(e.get_bytes(), open(self.EXAMPLE_PTH, 'rb').read()) self.assertEqual(e.content_type(), 'image/png')