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