@@ -0,0 +1,868 @@
+%22%22%22Tests for respite.formats.%22%22%22%0A%0Afrom nose.tools import *%0Afrom respite import formats%0A%0Adef test_find():%0A    format = formats.find(%22HTML%22)%0A%0A    assert_equal(%22HyperText Markup Language%22, format.name)%0A%0Adef test_find_by_name():%0A    format = formats.find_by_name(%22HyperText Markup Language%22)%0A%0A    assert_equal(%22HyperText Markup Language%22, format.name)%0A%0Adef test_find_by_extension():%0A    format = formats.find_by_extension(%22html%22)%0A%0A    assert_equal(%22HyperText Markup Language%22, format.name)%0A%0Adef test_find_by_content_type():%0A    format = formats.find_by_content_type(%22text/html%22)%0A%0A    assert_equal(%22HyperText Markup Language%22, format.name)%0A%0Adef test_preferred_extension():%0A    format = formats.find(%22HTML%22)%0A%0A    assert_equal(%22html%22, format.extension)%0A%0Adef test_preferred_content_type():%0A    format = formats.find(%22HTML%22)%0A%0A    assert_equal(%22text/html%22, format.content_type)%0A

Add tests for formats