def METHOD_NAME(self):
    fatfs.mkfs()
    fatfs.mount()
    self.assertTrue(fatfs.is_mounted())
    for name, call in self.MOUNTED_METHODS:
        function = getattr(fatfs, name)
        function(*call)
    for name, call in self.UNMOUNTED_METHODS:
        function = getattr(fatfs, name)
        try:
            function(*call)
            self.fail("should have raised")
        except fatfs.FatFSError as e:
            self.assertEqual(e.args[0], fatfs.FR_LOCKED)