def test_footnote(self):
     raw = '{{xref_csslength()}}'
     ks = XrefCSSLength(raw=raw, scope='footnote')
     self.assertEqual(
         '<a href="https://developer.mozilla.org/en-US/docs/Web/CSS/'
         'length"><code>&lt;length&gt;</code></a>',
         ks.to_html())
 def test_footnote(self):
     raw = '{{xref_csslength()}}'
     ks = XrefCSSLength(raw=raw, scope='footnote')
     self.assertEqual(
         '<a href="https://developer.mozilla.org/en-US/docs/Web/CSS/'
         'length"><code>&lt;length&gt;</code></a>',
         ks.to_html())
 def test_feature_name(self):
     raw = '{{xref_csslength()}}'
     ks = XrefCSSLength(raw=raw, scope='compatibility feature')
     self.assertEqual('<code>&lt;length&gt;</code>', ks.to_html())
     self.assertEqual([], ks.issues)
     self.assertEqual(text_type(ks), '{{xref_csslength}}')
 def test_feature_name(self):
     raw = '{{xref_csslength()}}'
     ks = XrefCSSLength(raw=raw, scope='compatibility feature')
     self.assertEqual('<code>&lt;length&gt;</code>', ks.to_html())
     self.assertEqual([], ks.issues)
     self.assertEqual(text_type(ks), '{{xref_csslength}}')