def test_filename_generation_for_c(self): language = 'c' self.assertEqual(Porter._get_filename('mdl', language), 'mdl.c') self.assertEqual(Porter._get_filename(' mdl ', language), 'mdl.c') self.assertEqual(Porter._get_filename('MDL', language), 'MDL.c')
def test_filename_generation_for_java(self): language = 'java' self.assertEqual(Porter._get_filename('mdl', language), 'Mdl.java') self.assertEqual(Porter._get_filename(' mdl ', language), 'Mdl.java') self.assertEqual(Porter._get_filename('MDL', language), 'MDL.java')
def test_filename_generation_for_php(self): language = 'php' self.assertEqual(Porter._get_filename('mdl', language), 'Mdl.php') self.assertEqual(Porter._get_filename(' mdl ', language), 'Mdl.php') self.assertEqual(Porter._get_filename('MDL', language), 'MDL.php')
def test_filename_generation_for_ruby(self): language = 'ruby' self.assertEqual(Porter._get_filename('mdl', language), 'mdl.rb') self.assertEqual(Porter._get_filename(' mdl ', language), 'mdl.rb') self.assertEqual(Porter._get_filename('MDL', language), 'MDL.rb')