def test_detect_android(self):
     self.assertEqual(
         AndroidFormat,
         detect_filename('foo/bar/strings_baz.xml')
     )
Exemplo n.º 2
0
 def test_detect_android(self):
     self.assertEqual(
         AndroidFormat,
         detect_filename('foo/bar/strings_baz.xml')
     )
 def single_test(self, filename, fileclass):
     with open(filename, 'rb') as handle:
         store = AutoFormat.parse(handle)
         self.assertIsInstance(store, fileclass)
     self.assertEqual(fileclass, detect_filename(filename))
Exemplo n.º 4
0
 def single_test(self, filename, fileclass):
     with open(filename, 'rb') as handle:
         store = AutoFormat.parse(handle)
         self.assertIsInstance(store, fileclass)
     self.assertEqual(fileclass, detect_filename(filename))