Beispiel #1
0
 def rubyExtension(self):
     self.assertEqual(get_filetype('foo.rb', 'foobar'), RUBY)
Beispiel #2
0
 def htmlTag(self):
     self.assertEqual(get_filetype('foo', '<html><head>'), HTML)
Beispiel #3
0
 def envPythonShebang(self):
     self.assertEqual(get_filetype('foo', '#!/usr/bin/env python'), PYTHON)
Beispiel #4
0
 def testUnknownShebang(self):
     self.assertIsNone(get_filetype('foo', '#!/usr/bin/foobar'))
Beispiel #5
0
 def xmlTag(self):
     self.assertEqual(get_filetype("foo", "<?xml>"), XML)
Beispiel #6
0
 def assertAutomakeNotMakefile(self):
     self.assertNotEqual(get_filetype("Makefile.am", "foobar"), MAKEFILE)
Beispiel #7
0
 def xmlTag(self):
     self.assertEqual(get_filetype('foo', '<?xml>'), XML)
Beispiel #8
0
 def envRubyShebang(self):
     self.assertEqual(get_filetype('foo', '#!/usr/bin/env ruby'), RUBY)
Beispiel #9
0
 def unknownExtension(self):
     self.assertIsNone(get_filetype('foo.bar', 'foobar'))
Beispiel #10
0
 def htmlTag(self):
     self.assertEqual(get_filetype('foo', '<html><head>'), HTML)
Beispiel #11
0
 def rubyExtension(self):
     self.assertEqual(get_filetype('foo.rb', 'foobar'), RUBY)
Beispiel #12
0
 def pythonExtension(self):
     self.assertEqual(get_filetype('foo.py', 'foobar'), PYTHON)
Beispiel #13
0
 def testUnknownShebang(self):
     self.assertIsNone(get_filetype('foo', '#!/usr/bin/foobar'))
Beispiel #14
0
 def phpTag(self):
     self.assertEqual(get_filetype('foo', "<?php echo('hello') ?>"), PHP)
Beispiel #15
0
 def phpTag(self):
     self.assertEqual(get_filetype('foo', "<?php echo('hello') ?>"), PHP)
Beispiel #16
0
 def assertAutomakeNotMakefile(self):
     self.assertNotEqual(get_filetype('Makefile.am', 'foobar'), MAKEFILE)
Beispiel #17
0
 def makefileFilenameLowerCase(self):
     self.assertEqual(get_filetype('makefile', 'foobar'), MAKEFILE)
Beispiel #18
0
 def htmlTag(self):
     self.assertEqual(get_filetype("foo", "<html><head>"), HTML)
Beispiel #19
0
 def assertAutomakeNotMakefile(self):
     self.assertNotEqual(get_filetype('Makefile.am', 'foobar'), MAKEFILE)
Beispiel #20
0
 def makefileFilenameLowerCase(self):
     self.assertEqual(get_filetype("makefile", "foobar"), MAKEFILE)
Beispiel #21
0
 def makefileShebang(self):
     self.assertEqual(get_filetype('foo', '#!/usr/bin/make -f'), MAKEFILE)
Beispiel #22
0
 def makefileShebang(self):
     self.assertEqual(get_filetype("foo", "#!/usr/bin/make -f"), MAKEFILE)
Beispiel #23
0
 def envPythonShebang(self):
     self.assertEqual(get_filetype("foo", "#!/usr/bin/env python"), PYTHON)
Beispiel #24
0
 def envRubyShebang(self):
     self.assertEqual(get_filetype('foo', '#!/usr/bin/env ruby'), RUBY)
Beispiel #25
0
 def envRubyShebang(self):
     self.assertEqual(get_filetype("foo", "#!/usr/bin/env ruby"), RUBY)
Beispiel #26
0
 def pythonExtension(self):
     self.assertEqual(get_filetype('foo.py', 'foobar'), PYTHON)
Beispiel #27
0
 def testUnknownShebang(self):
     self.assertIsNone(get_filetype("foo", "#!/usr/bin/foobar"))
Beispiel #28
0
 def unknownExtension(self):
     self.assertIsNone(get_filetype('foo.bar', 'foobar'))
Beispiel #29
0
 def pythonExtension(self):
     self.assertEqual(get_filetype("foo.py", "foobar"), PYTHON)
Beispiel #30
0
 def xmlTag(self):
     self.assertEqual(get_filetype('foo', '<?xml>'), XML)
Beispiel #31
0
 def rubyExtension(self):
     self.assertEqual(get_filetype("foo.rb", "foobar"), RUBY)
Beispiel #32
0
 def makefileFilenameLowerCase(self):
     self.assertEqual(get_filetype('makefile', 'foobar'), MAKEFILE)
Beispiel #33
0
 def unknownExtension(self):
     self.assertIsNone(get_filetype("foo.bar", "foobar"))
Beispiel #34
0
 def makefileShebang(self):
     self.assertEqual(get_filetype('foo', '#!/usr/bin/make -f'), MAKEFILE)
Beispiel #35
0
 def envPythonShebang(self):
     self.assertEqual(get_filetype('foo', '#!/usr/bin/env python'), PYTHON)