Beispiel #1
0
 def test_classify_doc_hardcoded(self):
     self.assertEquals("documentation", classify_filename("README"))
Beispiel #2
0
 def test_classify_unknown(self):
     self.assertEquals(None, classify_filename("something.bar"))
Beispiel #3
0
 def test_classify_art(self):
     self.assertEquals("art", classify_filename("icon.png"))
Beispiel #4
0
 def test_classify_translation(self):
     self.assertEquals("translation", classify_filename("nl.po"))
Beispiel #5
0
 def test_classify_documentation(self):
     self.assertEquals("documentation", classify_filename("bla.html"))
Beispiel #6
0
 def test_classify_code(self):
     self.assertEquals("code", classify_filename("foo/bar.c"))