Exemple #1
0
 def test_link_for_unknown_format(self):
     assert_equal(
         str(dgu_format_icon('unknown')),
         '<img src="/images/fugue/document.png" height="16px" width="16px" alt="None" class="inline-icon " /> '
     )
Exemple #2
0
 def test_link_for_csv(self):
     assert_equal(
         str(dgu_format_icon('Csv')),
         '<img src="/images/fugue/document-invoice.png" height="16px" width="16px" alt="None" class="inline-icon " /> '
     )
Exemple #3
0
 def test_is_literal(self):
     assert_equal(str(type(dgu_format_icon('Csv'))),
                  "<class 'webhelpers.html.builder.literal'>")
 def test_link_for_unknown_format(self):
     assert_equal(
         str(dgu_format_icon('unknown')),
         '<img src="/images/fugue/document.png" height="16px" width="16px" alt="None" class="inline-icon " /> ')
 def test_link_for_csv(self):
     assert_equal(
         str(dgu_format_icon('Csv')),
         '<img src="/images/fugue/document-invoice.png" height="16px" width="16px" alt="None" class="inline-icon " /> ')
 def test_is_literal(self):
     assert_equal(str(type(dgu_format_icon('Csv'))),
                  "<class 'webhelpers.html.builder.literal'>")