'``RawState`` includes whether or not a volume has a filesystem.'

@capture_logging(assertHasMessage, DISCOVERED_RAW_STATE)
def test_filesystem_state(self, logger):

    with_fs = self.api.create_volume(dataset_id=uuid4(), size=LOOPBACK_MINIMUM_ALLOCATABLE_SIZE)
    with_fs = self.api.attach_volume(with_fs.blockdevice_id, self.api.compute_instance_id())
    with_fs_device = self.api.get_device_path(with_fs.blockdevice_id)
    make_filesystem(with_fs_device, True)
    without_fs = self.api.create_volume(dataset_id=uuid4(), size=LOOPBACK_MINIMUM_ALLOCATABLE_SIZE)
    without_fs = self.api.attach_volume(without_fs.blockdevice_id, self.api.compute_instance_id())
    without_fs_device = self.api.get_device_path(without_fs.blockdevice_id)
    devices_with_filesystems = self.deployer._discover_raw_state().devices_with_filesystems
    self.assertEqual(dict(with_fs=(with_fs_device in devices_with_filesystems), without_fs=(without_fs_device in devices_with_filesystems)), dict(with_fs=True, without_fs=False))
